- Joined
- Jul 29, 2010
- Messages
- 319
I basically want this trigger to continue to loop to check whether the unit in question is dead and if so then save the new unit in the position of the dead unit, if not then increase the integer and save the new unit in a different position in the hashtable, just wondering if there is a more effective way of doing this?
-
Ability being cast
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
Actions
-
Set TargetUnit = (Target unit of ability being cast)
-
Set CastUnit = (Casting unit)
-
Set CustomValue = (CustomValue + 1)
-
Hashtable - Save Handle OfTargetUnit as CustomValue of CustomValue in Targets_Hashtable
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Load CustomValue of CustomValue in Casters_Hashtable) is dead) Equal to True
-
-
Then - Actions
-
Hashtable - Save Handle OfCastUnit as CustomValue of CustomValue in Casters_Hashtable
-
-
Else - Actions
-
Trigger - Run Ability being cast <gen> (checking conditions)
-
-
-
-