F
Furkentine
Guest
I already searched the forums and couldn't quite find the kind of problem I'm having.
My goal is to give each of 10 players a dialog box in first 3 seconds of the game letting them choose which race they want to play with. Each player has a their own spawning point for the race they choose so I have to do the triggers 10 seperate (or do i?). The problem I am having is if I activate more than one player's set up of triggers it works but but the buttons don't spawn the units.
Here are triggers I have.
(Creating Box)
<Event>
Time - Elapsed game time is 3.00 seconds
<Conditions>
<Actions>
Dialog - Change the title of DialogBox to Choose Your Color
Dialog - Create a dialog button for DialogBox labelled Swamp
Set DialogBTN_Swamp = (Last created dialog Button)
Dialog - Create a dialog button for DialogBox labelled Forest
Set DialogBTN_Forest = (Last created dialog Button)
Dialog - Create a dialog button for DialogBox labelled Plain
Set DialogBTN_Plain = (Last created dialog Button)
Dialog - Create a dialog button for DialogBox labelled Mountain
Set DialogBTN_Mountain = (Last created dialog Button)
Dialog - Create a dialog button for DialogBox labelled Island
Set DialogBTN_Island = (Last created dialog Button)
Dialog - Show DialogBox for Player 1 (Red)
(Button Pressing)
<Events>
Dialog - A dialog button is clicked for DialogBox
<Conditions>
<Actions>
If ((Clicked dialog button) Equal to DialogBTN_Swamp) then do (Trigger - Run Chose Swamp <gen> (ignoring conditions)) else do (Do nothing)
If ((Clicked dialog button) Equal to DialogBTN_Plain) then do (Trigger - Run Chose Plain <gen> (ignoring conditions)) else do (Do nothing)
If ((Clicked dialog button) Equal to DialogBTN_Mountain) then do (Trigger - Run Chose Mountain <gen> (ignoring conditions)) else do (Do nothing)
If ((Clicked dialog button) Equal to DialogBTN_Island) then do (Trigger - Run Chose Island <gen> (ignoring conditions)) else do (Do nothing)
If ((Clicked dialog button) Equal to DialogBTN_Forest) then do (Trigger - Run Chose Forest <gen> (ignoring conditions)) else do (Do nothing)
(Trigger that gives player unit of choice)
<Events>
<Conditions>
<Actions>
Unit - Create 1 Black for Player 1 (Red) at (Center of Red Start <gen>) facing 270.00 degrees
For refrence I'm using the races Plain, Swamp, Mountain, Island and Forest, you can see this in the triggers. Also each player's dialog box title uses the same variable. This might be the problem idk. Thanks in advance.
My goal is to give each of 10 players a dialog box in first 3 seconds of the game letting them choose which race they want to play with. Each player has a their own spawning point for the race they choose so I have to do the triggers 10 seperate (or do i?). The problem I am having is if I activate more than one player's set up of triggers it works but but the buttons don't spawn the units.
Here are triggers I have.
(Creating Box)
<Event>
Time - Elapsed game time is 3.00 seconds
<Conditions>
<Actions>
Dialog - Change the title of DialogBox to Choose Your Color
Dialog - Create a dialog button for DialogBox labelled Swamp
Set DialogBTN_Swamp = (Last created dialog Button)
Dialog - Create a dialog button for DialogBox labelled Forest
Set DialogBTN_Forest = (Last created dialog Button)
Dialog - Create a dialog button for DialogBox labelled Plain
Set DialogBTN_Plain = (Last created dialog Button)
Dialog - Create a dialog button for DialogBox labelled Mountain
Set DialogBTN_Mountain = (Last created dialog Button)
Dialog - Create a dialog button for DialogBox labelled Island
Set DialogBTN_Island = (Last created dialog Button)
Dialog - Show DialogBox for Player 1 (Red)
(Button Pressing)
<Events>
Dialog - A dialog button is clicked for DialogBox
<Conditions>
<Actions>
If ((Clicked dialog button) Equal to DialogBTN_Swamp) then do (Trigger - Run Chose Swamp <gen> (ignoring conditions)) else do (Do nothing)
If ((Clicked dialog button) Equal to DialogBTN_Plain) then do (Trigger - Run Chose Plain <gen> (ignoring conditions)) else do (Do nothing)
If ((Clicked dialog button) Equal to DialogBTN_Mountain) then do (Trigger - Run Chose Mountain <gen> (ignoring conditions)) else do (Do nothing)
If ((Clicked dialog button) Equal to DialogBTN_Island) then do (Trigger - Run Chose Island <gen> (ignoring conditions)) else do (Do nothing)
If ((Clicked dialog button) Equal to DialogBTN_Forest) then do (Trigger - Run Chose Forest <gen> (ignoring conditions)) else do (Do nothing)
(Trigger that gives player unit of choice)
<Events>
<Conditions>
<Actions>
Unit - Create 1 Black for Player 1 (Red) at (Center of Red Start <gen>) facing 270.00 degrees
For refrence I'm using the races Plain, Swamp, Mountain, Island and Forest, you can see this in the triggers. Also each player's dialog box title uses the same variable. This might be the problem idk. Thanks in advance.


