- Joined
- Feb 18, 2016
- Messages
- 96
I made a trigger version of shockwave ability but for some reason it does not works properly
The problem is in the periodic trigger.
It stills damaging the units in the QDMG Group causing them x damage every .03 seconds
-
Disparo
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Ability
-
-
Actions
-
Set Final = (Target point of ability being cast)
-
Unit - Create 1 Dummy for (Owner of caster) at (Position of caster) facing (Facing of SantaClaus) degrees
-
Set DUMMY = (Last created unit)
-
Trigger - Turn on dam <gen>
-
Unit - Order DUMMY to Move ToFinal
-
-
-
dam
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between (Position of DUMMY) and Final) Greater than 50.00
-
-
Then - Actions
-
Set QGR = (Units within 150.00 of (Position of DUMMY))
-
Unit Group - Pick every unit in QGR and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
-------- Here is the problem} --------
-
((Picked unit) belongs to an enemy of (Owner of caster)) Equal to True
-
((Picked unit) is in QDMG) Equal to False
-
-
Then - Actions
-
Unit - Cause caster to damage (Picked unit), dealing x damage of attack type Normal and damage type Normal
-
Unit Group - Add (Picked unit) to QDMG
-
Else - Actions
-
-
-
-
-
Custom script: call DestroyGroup (udg_QGR)
-
-
Else - Actions
-
Custom script: call RemoveLocation (udg_Final)
-
Trigger - Run final <gen> (checking conditions)
-
Trigger - Turn off (This trigger)
-
-
-
-
-
final
-
Events
-
Conditions
-
Actions
-
Custom script: call DestroyGroup (udg_QDMG)
-
Unit - Remove DUMMY from the game
-
Set DUMMY = No unit
-
-
The problem is in the periodic trigger.
It stills damaging the units in the QDMG Group causing them x damage every .03 seconds