[Hide=Infinite Discharge]
[Hide=Infinite Discharge Loop]
whats wrong with my trigger? if i cast it twice the 1st caster will pause and when i cast it again it doesn't work now....
can you help me with this?
+rep for those who help
-
ID
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Infinite Discharge
-
Actions
- Set Index = (Index + 1)
- Set Caster[Index] = (Triggering unit)
- Set Target[Index] = (Target unit of ability being cast)
- Set TargetLoc[Index] = (Position of Target[Index])
- Set Duration = 7
- Unit - Pause Caster[Index]
- Unit - Pause Target[Index]
- Unit - Move Caster[Index] instantly to TargetLoc[Index], facing TargetLoc[Index]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Index Equal to 1
-
Then - Actions
- Trigger - Turn on ID Loop <gen>
- Else - Actions
-
If - Conditions
-
Events
[Hide=Infinite Discharge Loop]
-
ID Loop
-
Events
- Time - Every 0.50 seconds of game time
- Conditions
-
Actions
-
For each (Integer Integer) from 1 to Index, do (Actions)
-
Loop - Actions
- Animation - Change Caster[Integer]'s animation speed to 200.00% of its original speed
- Animation - Change Caster[Integer]'s vertex coloring to ((100.00 - 10.00)%, 100.00%, 100.00%) with 0.00% transparency
- Animation - Play Caster[Integer]'s attack animation
- Unit - Cause Caster[Integer] to damage Target[Integer], dealing 50.00 damage of attack type Spells and damage type Normal
- Set Duration = (Duration - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Duration Equal to 0
-
Then - Actions
- Trigger - Turn off (This trigger)
- Set Caster[Integer] = Caster[Index]
- Set Target[Integer] = Target[Index]
- Unit - Unpause Caster[Integer]
- Unit - Unpause Target[Integer]
- Else - Actions
-
If - Conditions
-
Loop - Actions
-
For each (Integer Integer) from 1 to Index, do (Actions)
-
Events
whats wrong with my trigger? if i cast it twice the 1st caster will pause and when i cast it again it doesn't work now....
can you help me with this?
+rep for those who help