B
bobdakilla
Guest
Well i just wanted to know why all my characters will be picked correctly but only the Flare mage will not work at all. Variable "Heros" is an array of 9 and default start is No-unit. Heres the code....
ShowDiag
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Dialog - Clear HeroDiag1
Dialog - Change the title of HeroDiag1 to Choose a Hero Pg.1
Dialog - Create a dialog button for HeroDiag1 labelled Flare Mage
Set DiagButton[0] = (Last created dialog Button)
Dialog - Create a dialog button for HeroDiag1 labelled Blade Assailant
Set DiagButton[1] = (Last created dialog Button)
Dialog - Create a dialog button for HeroDiag1 labelled Black Ninja
Set DiagButton[2] = (Last created dialog Button)
Dialog - Create a dialog button for HeroDiag1 labelled Ice Lich
Set DiagButton[3] = (Last created dialog Button)
Dialog - Create a dialog button for HeroDiag1 labelled To Page 2
Set DiagButton[4] = (Last created dialog Button)
-------- ADD 2ND PAGE --------
Dialog - Clear HeroDiag2
Dialog - Change the title of HeroDiag2 to Choose a Hero Pg.2
Dialog - Create a dialog button for HeroDiag2 labelled Warrior Gnome
Set DiagButton[5] = (Last created dialog Button)
Dialog - Create a dialog button for HeroDiag2 labelled Wise Elder
Set DiagButton[6] = (Last created dialog Button)
Dialog - Create a dialog button for HeroDiag2 labelled Demon of Shadows
Set DiagButton[7] = (Last created dialog Button)
Dialog - Create a dialog button for HeroDiag2 labelled Father Nature
Set DiagButton[8] = (Last created dialog Button)
Dialog - Create a dialog button for HeroDiag2 labelled To Page 1
Set DiagButton[9] = (Last created dialog Button)
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Dialog - Show HeroDiag1 for (Picked player)
Diag Trigg
Events
Dialog - A dialog button is clicked for HeroDiag1
Dialog - A dialog button is clicked for HeroDiag2
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DiagButton[4]
Then - Actions
Dialog - Show HeroDiag2 for (Triggering player)
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DiagButton[9]
Then - Actions
Dialog - Show HeroDiag1 for (Triggering player)
Skip remaining actions
Else - Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DiagButton[(Integer A)]
Then - Actions
Unit - Create 1 Heros[(Integer A)] for (Triggering player) at ((Triggering player) start location) facing Default building facing (270.0) degrees
Selection - Select (Last created unit) for (Triggering player)
Else - Actions


