- Joined
- Oct 9, 2015
- Messages
- 721
I'm having problems with this trigger, its a "select your hero" dialog but no matter what choice you take it's only spawning the first hero of the list.
Can anyone shed a light here, please ?
Can anyone shed a light here, please ?
-
DoDialog
-
Events
-
Dialog - A dialog button is clicked for HeroDialog1
-
Dialog - A dialog button is clicked for HeroDialog2
-
-
Conditions
-
Actions
-
-------- Switch to page 2 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to DialogButtons[5]
-
-
Then - Actions
-
Dialog - Change the title of HeroDialog2 to Choose a Hero (2/2)
-
Dialog - Show HeroDialog2 for (Triggering player)
-
Skip remaining actions
-
-
Else - Actions
-
-
-------- Switch to page 1 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to DialogButtons[10]
-
-
Then - Actions
-
Dialog - Change the title of HeroDialog1 to Choose a Hero (1/2)
-
Dialog - Show HeroDialog1 for (Triggering player)
-
Skip remaining actions
-
-
Else - Actions
-
-
-------- Create the chosen Hero --------
-
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 DialogButtons[(Integer A)]
-
-
Then - Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Picked player) Not equal to Player 2 (Blue)
-
(Picked player) Not equal to Player 3 (Teal)
-
-
Then - Actions
-
Set Playerss[(Player number of (Picked player))] = (Picked player)
-
-
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
-
(Playerss[(Integer A)] slot status) Equal to Is playing
-
-
Then - Actions
-
Camera - Lock camera target for (Player((Integer A))) to Unit[(Integer A)], offset by (0.00, 0.00) using The unit's rotation
-
Camera - Set (Player((Integer A)))'s camera Distance to target to 250.00 over 0.00 seconds
-
Camera - Set (Player((Integer A)))'s camera Angle of attack to 345.00 over 0.00 seconds
-
Camera - Set (Player((Integer A)))'s camera Field of view to 1000.00 over 0.00 seconds
-
Set Angle[(Integer A)] = 0.00
-
Set Speed[(Integer A)] = 0.00
-
Set AnimationSpeed[(Integer A)] = 0.50
-
Set Location[(Integer A)] = (Random point in (Playable map area))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Playerss[(Integer A)] is an ally of Player 2 (Blue)) Equal to True
-
-
Then - Actions
-
Unit - Create 1 Heroes[(Integer A)] for (Player((Integer A))) at (Center of Time1 <gen>) facing (Center X of Centro <gen>) degrees
-
Set Unit[(Integer A)] = (Last created unit)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Playerss[(Integer A)] is an ally of Player 3 (Teal)) Equal to True
-
-
Then - Actions
-
Unit - Create 1 Heroes[(Integer A)] for (Player((Integer A))) at (Center of Time2 <gen>) facing (Center X of Centro <gen>) degrees
-
Set Unit[(Integer A)] = (Last created unit)
-
-
Else - Actions
-
-
Selection - Select Unit[(Integer A)] for Playerss[(Integer A)]
-
Unit - Make Unit[(Integer A)] face Angle[(Integer A)] over 0.00 seconds
-
Camera - Set Playerss[(Integer A)]'s camera Rotation to Angle[(Integer A)] over 0.00 seconds
-
Custom script: call RemoveLocation(udg_Location[1])
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
-
-