I am not sure how sliding units/dummies work. For example, I want to make a shockwave type ability that uses a sliding dummy that does damage to nearby units with immolation or whatever. But I do not know what GUI scripts to use. Do you need JASS to slide units like this? I do not know how to move a unit, every .02 seconds (human eye sees about 40 frames per second) towards a target position. How do I do this? I would also like to slide a dummy around a point.
How can I make a chain lightning/healing wave ability with a trigger? I want to be able to alter the damage within the trigger so I can’t use the normal abilities.
Here's part of an attempt:
I actually have 2 problems with this: it does not damage the second target, and it does not show any lightning effects. What am I doing wrong?
How can I make a chain lightning/healing wave ability with a trigger? I want to be able to alter the damage within the trigger so I can’t use the normal abilities.
Here's part of an attempt:
Trigger:
- Breaker Attack
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Spell Breaker Attack
- Actions
- Set DmgBreaker[(Player number of (Owner of (Triggering unit)))] = 45.00
- Lightning - Create a Spirit Link lightning effect from source (Position of (Casting unit)) to target (Position of (Target unit of ability being cast))
- Set BreakerAttack = (Last created lightning effect)
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing DmgBreaker[(Player number of (Owner of (Triggering unit)))] damage of attack type Normal and damage type Normal
- Wait .3 seconds
- Unit Group - Add (Random unit from (Units within 260.00 of (Position of (Target unit of ability being cast)) matching (((((Matching unit) is A structure) Equal to False) and ((Matching unit) Not equal to (Target unit of ability being cast))) and (((Matching unit) belongs to a to BreakerChainAttack[(Player number of (Owner of (Triggering unit)))]
- Unit - Cause (Triggering unit) to damage (Random unit from BreakerChainAttack[(Player number of (Owner of (Triggering unit)))]), dealing (0.20 x DmgBreaker[(Player number of (Owner of (Triggering unit)))]) damage of attack type Spells and damage type Lightning
- Lightning - Move BreakerAttack to source (Position of (Target unit of ability being cast)) and target (Position of (Picked unit))
- Wait 1.00 seconds
- Lightning - Destroy BreakerAttack
- Events
I actually have 2 problems with this: it does not damage the second target, and it does not show any lightning effects. What am I doing wrong?