- Joined
- Aug 19, 2007
- Messages
- 1,377
Hi all,
I have a question about dialog arrays and dialog button arrays events (so when the button is pressed).
I now have the following code to create a dialog for every user (noob alert
):
I have a question about dialog arrays and dialog button arrays events (so when the button is pressed).
I now have the following code to create a dialog for every user (noob alert
):-
For each (Integer A) from 1 to 12, do (Actions)
-

Loop - Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




((Player((Integer A))) controller) Equal to User
-
-



Then - Actions
-




Dialog - Clear RaceDialog[(Integer A)]
-




Dialog - Change the title of RaceDialog[(Integer A)] to Pick a race:
-




Dialog - Create a dialog button for RaceDialog[(Integer A)] labelled Human
-




Set RaceDialogButton1[(Integer A)] = (Last created dialog Button)
-




Dialog - Show RaceDialog[(Integer A)] for (Player((Integer A)))
-
-



Else - Actions
-
-
-
-
Human race selected
-

Events
-


Dialog - A dialog button is clicked for RaceDialog[1]
-
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Clicked dialog button) Equal to RaceDialogButton1[1]
-
-
-
-

Actions
-


Unit - Create 1 Town Hall for (Player(1)) at ((Player(1)) start location) facing Default building facing degrees
-


Unit - Create 4 Peasant for (Player(1)) at ((Player(1)) start location) facing Default building facing degrees
-
-



