Ok, i cant seem to find my previous thread on dialogs, so i just made this one, but with a different question. so far i have this:
Button Pressed
Now my problem is this: whenever i play with all the "Picking a Race <player>" triggers, if i click a button, none of the units are created. However, if i disable all of the "Picking a Race <player>" triggers except for mine, pressing the buttons will create players.
Another thing would to create a multiboard where it displays player's names, a small icons of their race, what race theyve chosen, and who hasnt chosen a race yet, and when all playing players have chosen a race, the game will begin.
Another thing i would like to have help with is, having a "Random Race" button for my dialog, so if a player picks that, then he/she will be randomly assigned on of the pickable races. If a player picks "Random Race" then on the multiboard, it will just say "Random".
One last thing, i would like to know if theres an easier way to display the dialog to only players that are playing, so i dont need to have more than 1 trigger for creating/displaying the buttons and dialog.
-
Picking a Race Red
-
Events
-
Time - Elapsed game time is 0.01 seconds
-
-
Conditions
-
(Player 1 (Red) slot status) Equal to Is playing
-
-
Actions
-
Dialog - Change the title of RaceChooseDialog to Choose Your Race
-
Dialog - Create a dialog button for RaceChooseDialog labelled Race1
-
Set RaceButtons[1] = (Last created dialog Button)
-
Dialog - Create a dialog button for RaceChooseDialog labelled Race2
-
Set RaceButtons[2] = (Last created dialog Button)
-
Dialog - Create a dialog button for RaceChooseDialog labelled Race3 Set RaceButtons[3] = (Last created dialog Button)
-
Dialog - Create a dialog button for RaceChooseDialog labelled Race4
-
Set RaceButtons[4] = (Last created dialog Button)
-
Dialog - Show RaceChooseDialog for Player 1 (Red)
-
If ((Player 1 (Red) slot status) Equal to Is unused) then do (Do nothing) else do (Do nothing)
-
-
Button Pressed
-
Events
-
Dialog - A dialog button is clicked for RaceChooseDialog
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to RaceButtons[1]
-
-
Then - Actions
-
Unit - Create 1 Outpost for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
-
Unit - Create 5 Engineer for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
-
Dialog - Hide RaceChooseDialog for (Triggering player)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to RaceButtons[2]
-
-
Then - Actions
-
Unit - Create 1 Provincial Command for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
-
Unit - Create 5 Mason for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
-
Dialog - Hide RaceChooseDialog for (Triggering player)
-
-
Else - Actions
-
-
-
-
Now my problem is this: whenever i play with all the "Picking a Race <player>" triggers, if i click a button, none of the units are created. However, if i disable all of the "Picking a Race <player>" triggers except for mine, pressing the buttons will create players.
Another thing would to create a multiboard where it displays player's names, a small icons of their race, what race theyve chosen, and who hasnt chosen a race yet, and when all playing players have chosen a race, the game will begin.
Another thing i would like to have help with is, having a "Random Race" button for my dialog, so if a player picks that, then he/she will be randomly assigned on of the pickable races. If a player picks "Random Race" then on the multiboard, it will just say "Random".
One last thing, i would like to know if theres an easier way to display the dialog to only players that are playing, so i dont need to have more than 1 trigger for creating/displaying the buttons and dialog.
Last edited: