- Joined
- Jul 13, 2010
- Messages
- 84
I'm making this trigger which when cast is supposed to pause both the target and the user and then 5 times a second for the 6 second duration the target is supposed to take damage based on the level of the ability. This is how I have it set up:
Abilityy
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Ability
Actions
Set chargetarget[TempInt] = (Target unit of ability being cast)
Unit - Pause (Triggering unit)
Unit - Pause chargetarget[TempInt]
Unit - Pause (Target unit of ability being cast)
Trigger - Turn on Attack Anim <gen>
Attack Anim
Events
Time - Every 0.20 seconds of game time
Conditions
Actions
Animation - Play Attacker 0030 <gen>'s Attack animation
Unit - Cause Attacker 0030 <gen> to damage chargetarget[TempInt], dealing (1.00 + damage[(Level of Ability for (Triggering unit))]) damage of attack type Chaos and damage type Death
chargetarget= Unit Array
TempInt= Integer
It doesn't do damage and the target doesn't freeze when the spell is cast.
Abilityy
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Ability
Actions
Set chargetarget[TempInt] = (Target unit of ability being cast)
Unit - Pause (Triggering unit)
Unit - Pause chargetarget[TempInt]
Unit - Pause (Target unit of ability being cast)
Trigger - Turn on Attack Anim <gen>
Attack Anim
Events
Time - Every 0.20 seconds of game time
Conditions
Actions
Animation - Play Attacker 0030 <gen>'s Attack animation
Unit - Cause Attacker 0030 <gen> to damage chargetarget[TempInt], dealing (1.00 + damage[(Level of Ability for (Triggering unit))]) damage of attack type Chaos and damage type Death
chargetarget= Unit Array
TempInt= Integer
It doesn't do damage and the target doesn't freeze when the spell is cast.