- Joined
- Oct 20, 2010
- Messages
- 214
I have been trying to test this to no avail:
If a trigger can cause itself to run, will it add it to the end of the queue or first finish the trigger being run? For the following code, will armyReal be overwritten before the first set of "pick every unit" completes? I hope this question is as clear as I'm trying to make it.
If a trigger can cause itself to run, will it add it to the end of the queue or first finish the trigger being run? For the following code, will armyReal be overwritten before the first set of "pick every unit" completes? I hope this question is as clear as I'm trying to make it.
-
Example
-
Events
- Game - DamageEvent becomes Equal to 1.00
-
Conditions
- (Random integer number between 1 and 4) Equal to 1
- DamageEventAttackT Equal to 5
-
Actions
- Set VariableSet loc = (Position of DamageEventSource)
- Set VariableSet armyReal = (Random real number between 10.00 and 20.00)
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 300.00 of loc) and do (Actions)
-
Loop - Actions
- Unit - Cause DamageEventSource to damage (Picked unit), dealing armyReal damage of attack type Normal and damage type Normal
-
Loop - Actions
- Custom script: call RemoveLocation(udg_loc)
-
Events