KvickaN
TH.net Regular
- Reaction score
- 24
Well it's the first time I play around with dialogs and I can't seem to fix it!
The problem here is that when either "Yes" or "No" is pushed nothing happens...
Appriciate help
Edit: Fixed it. Solution below:
The problem here is that when either "Yes" or "No" is pushed nothing happens...
Code:
The Funny Dialog
Events
Time - Elapsed game time is 2.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Dialog - Change the title of Dialog to Are you ready?
Dialog - Create a dialog button for Dialog labelled |c0020c000Yes!|r
Set DialogButtons[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled |c00ff0303No!|r
Set DialogButtons[2] = (Last created dialog Button)
Dialog - Show Dialog for (Picked player)
Code:
The Funny Dialog2
Events
Dialog - A dialog button is clicked for Dialog
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DialogButtons[1]
Then - Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + |c0020c000is ready!|r)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DialogButtons[2]
Then - Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + |c00ff0303is NOT ready! Well screw him! Lets start anyway :D!|r)
Else - Actions
Appriciate help
Edit: Fixed it. Solution below:
Code:
The Funny Dialog
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Dialog - Clear Dialog
Dialog - Change the title of Dialog to Are you ready?
Dialog - Create a dialog button for Dialog labelled |c0020c000Yes!|r
Set DialogButtons[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled |c00ff0303No!|r
Set DialogButtons[2] = (Last created dialog Button)
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Dialog - Show Dialog for (Picked player)
Code:
The Funny Dialog2
Events
Dialog - A dialog button is clicked for Dialog
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DialogButtons[1]
Then - Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + |c0020c000is ready!|r)
Else - Actions
If ((Clicked dialog button) Equal to DialogButtons[2]) then do (Game - Display to (All players) the text: ((Name of (Triggering player)) + |c00ff0303is NOT ready! Well screw him! Lets start anyway :D!|r)) else do (Do nothing)