- Joined
- May 21, 2006
- Messages
- 174
This is a part of my duel trigger.
First time this is run, everything works like a charm, no problems what so ever.
However, every single time it's run after the first time, no Heroes are added to HeroPool[1] despite the Debug Message under
"Unit Group - Add Hero[(Integer A)] to HeroPool[1]" does in fact say the Hero should get added.
For some reason HeroPool[2] does not suffer from this problem at all.
First time this is run, everything works like a charm, no problems what so ever.
However, every single time it's run after the first time, no Heroes are added to HeroPool[1] despite the Debug Message under
"Unit Group - Add Hero[(Integer A)] to HeroPool[1]" does in fact say the Hero should get added.
For some reason HeroPool[2] does not suffer from this problem at all.
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- (Hero[(Integer A)] is dead) Equal to False
- Hero[(Integer A)] Not equal to No unit
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Integer A) Less than or equal to 3
-
Then - Actions
- Unit Group - Add Hero[(Integer A)] to HeroPool[1]
- Game - Display to Player Group - Player 1 (Red) the text: (|cffffcc00DEBUG:|r + (Added Hero: + ((Hero[ + ((String((Integer A))) + ] )) + (= + ((Proper name of Hero[(Integer A)]) + ( (Player: + ((Name of (Owner of Hero[(Integer A)])) + ))))))))
-
Else - Actions
- Unit Group - Add Hero[(Integer A)] to HeroPool[2]
- Game - Display to Player Group - Player 1 (Red) the text: (|cffffcc00DEBUG:|r + (Added Hero: + ((Hero[ + ((String((Integer A))) + ] )) + (= + ((Proper name of Hero[(Integer A)]) + ( (Player: + ((Name of (Owner of Hero[(Integer A)])) + ))))))))
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
- Game - Display to Player Group - Player 1 (Red) the text: (|cffffcc00DEBUG:|r + (No Hero Added for: + ((Hero[ + ((String((Integer A))) + ] )) + <Empty String>)))
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Game - Display to Player Group - Player 1 (Red) the text: (|cffffcc00DEBUG:|r + ((Team 1: + (String((Number of units in HeroPool[1])))) + ( ... Team 2: + (String((Number of units in HeroPool[2]))))))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Number of units in HeroPool[1]) Equal to 0
- (Number of units in HeroPool[2]) Equal to 0
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Unit Group - Remove all units from HeroPool[1]
- Unit Group - Remove all units from HeroPool[2]
- Skip remaining actions
- Else - Actions
-
If - Conditions
- * Followed by the rest of the trigger *
- * Followed by the rest of the trigger *
- * Followed by the rest of the trigger *