- Joined
- Aug 11, 2009
- Messages
- 594
I wanted to change so regular enemies in the map are all Hero units instead of regular units. But now the respawn triggers I try to use wont work properly. The problem is that only 7 out of 15 units revive.
- Time - Elapsed game time is 0.00 seconds
- Set VariableSet Camp_UnitGroup[1] = (Units in Camp11 Area <gen> owned by Neutral Hostile)
-
Unit Group - Pick every unit in Camp_UnitGroup[1] and do (Actions)
-
Loop - Actions
- Set VariableSet CampScale_Count = (CampScale_Count + 1)
- Set VariableSet Camp11_Unit[CampScale_Count] = (Picked unit)
- Set VariableSet Camp11_Point[CampScale_Count] = (Position of (Picked unit))
- Set VariableSet Camp11_Facing[CampScale_Count] = (Facing of (Picked unit))
- Set VariableSet CampScale_Unit[CampScale_Count] = (Picked unit)
- Set VariableSet CampScale_VIT[CampScale_Count] = (Strength of (Picked unit) (Exclude bonuses))
- Set VariableSet CampScale_POW[CampScale_Count] = (Agility of (Picked unit) (Exclude bonuses))
- Unit - Set the custom value of (Picked unit) to CampScale_Count
-
Loop - Actions
-
Camp11 Reset
- Events
- Conditions
-
Actions
-
Unit Group - Pick every unit in Camp_UnitGroup[1] and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is alive) Equal to True
-
Then - Actions
- Unit - Kill (Picked unit)
- Hero - Instantly revive (Picked unit) at Camp11_Point[(Custom value of (Picked unit))], Hide revival graphics
- Unit - Make (Picked unit) face Camp11_Facing[(Custom value of (Picked unit))] over 0.00 seconds
-
Else - Actions
- Hero - Instantly revive (Picked unit) at Camp11_Point[(Custom value of (Picked unit))], Hide revival graphics
- Unit - Make (Picked unit) face Camp11_Facing[(Custom value of (Picked unit))] over 0.00 seconds
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in Camp_UnitGroup[1] and do (Actions)
Last edited: