- Joined
- Mar 24, 2013
- Messages
- 1,105
Hi, I read the other day in some thread I forgot which one :/, but that Dialogues are "global" as in they will respond to the first person only. I am wondering if this was correct/if my code will work.
What I am trying to achieve is a voting on game modes.
What I am trying to achieve is a voting on game modes.
-
Dialogue Initialization
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- Dialog - Clear Dialogue1
- Dialog - Change the title of Dialogue1 to Number of Rounds?
- Dialog - Create a dialog button for Dialogue1 labelled 1
- Set DialogueRounds[1] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialogue1 labelled 3
- Set DialogueRounds[2] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialogue1 labelled 5
- Set DialogueRounds[3] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialogue1 labelled 10
- Set DialogueRounds[4] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialogue1 labelled 100
- Set DialogueRounds[5] = (Last created dialog Button)
- Dialog - Clear Dialogue2
- Dialog - Change the title of Dialogue2 to Time per Round? /mi...
- Dialog - Create a dialog button for Dialogue2 labelled 4
- Set DialogueTime[1] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialogue2 labelled 7
- Set DialogueTime[2] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialogue2 labelled 10
- Set DialogueTime[3] = (Last created dialog Button)
- Dialog - Clear Dialogue3
- Dialog - Change the title of Dialogue3 to Powerups?
- Dialog - Create a dialog button for Dialogue3 labelled Disabled
- Set DialoguePower[1] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialogue3 labelled Enabled
- Set DialoguePower[2] = (Last created dialog Button)
- Dialog - Clear Dialogue4
- Dialog - Change the title of Dialogue4 to Mode?
- Dialog - Create a dialog button for Dialogue4 labelled Standard (Solo)
- Set DialogueMode[1] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialogue4 labelled Reds versus Blues (...
- Set DialogueMode[2] = (Last created dialog Button)
-
For each (Integer TempInteger) from 1 to 11, do (Actions)
-
Loop - Actions
- Set TempPlayer = (Player(TempInteger))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (TempPlayer controller) Equal to User
- (TempPlayer slot status) Equal to Is playing
-
Then - Actions
- Dialog - Show Dialogue1 for TempPlayer
- Else - Actions
-
If - Conditions
-
Loop - Actions
-
Events
-
Dialogue Rounds
-
Events
- Dialog - A dialog button is clicked for Dialogue1
- Conditions
-
Actions
- Set TempPlayer = (Triggering player)
- Set TempInteger = (Player number of TempPlayer)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueRounds[1]
-
Then - Actions
- Set voteRound[1] = (voteRound[1] + 1)
- Set TempString = 1
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueRounds[2]
-
Then - Actions
- Set voteRound[2] = (voteRound[2] + 1)
- Set TempString = 3
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueRounds[3]
-
Then - Actions
- Set voteRound[3] = (voteRound[3] + 1)
- Set TempString = 5
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueRounds[4]
-
Then - Actions
- Set voteRound[4] = (voteRound[4] + 1)
- Set TempString = 10
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueRounds[5]
-
Then - Actions
- Set voteRound[5] = (voteRound[5] + 1)
- Set TempString = 100
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Game - Display to (All players) for 10.00 seconds the text: (playerColors[TempInteger] + ((RealNames[TempInteger] + colorEnd) + ( has voted for + (TempString + round(s).))))
- Set TempString = <Empty String>
- Dialog - Show Dialogue2 for TempPlayer
-
Events
-
Dialogue TPR
-
Events
- Dialog - A dialog button is clicked for Dialogue2
- Conditions
-
Actions
- Set TempPlayer = (Triggering player)
- Set TempInteger = (Player number of TempPlayer)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueTime[1]
-
Then - Actions
- Set voteTime[1] = (voteTime[1] + 1)
- Set TempString = 4
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueTime[2]
-
Then - Actions
- Set voteTime[2] = (voteTime[2] + 1)
- Set TempString = 7
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueTime[3]
-
Then - Actions
- Set voteTime[3] = (voteTime[3] + 1)
- Set TempString = 10
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Game - Display to (All players) for 10.00 seconds the text: (playerColors[TempInteger] + ((RealNames[TempInteger] + colorEnd) + ( has voted for + (TempString + minutes per round.))))
- Set TempString = <Empty String>
- Dialog - Show Dialogue3 for TempPlayer
-
Events
-
Dialogue PowerUp
-
Events
- Dialog - A dialog button is clicked for Dialogue3
- Conditions
-
Actions
- Set TempPlayer = (Triggering player)
- Set TempInteger = (Player number of TempPlayer)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialoguePower[1]
-
Then - Actions
- Set votePower[1] = (votePower[1] + 1)
- Set TempString = Disabled
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialoguePower[2]
-
Then - Actions
- Set votePower[2] = (votePower[2] + 1)
- Set TempString = Enabled
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Game - Display to (All players) for 10.00 seconds the text: (playerColors[TempInteger] + ((RealNames[TempInteger] + colorEnd) + ( has voted for + (TempString + Power Ups))))
- Set TempString = <Empty String>
- Dialog - Show Dialogue4 for TempPlayer
-
Events
-
Dialogue Mode
-
Events
- Dialog - A dialog button is clicked for Dialogue4
- Conditions
-
Actions
- Set TempPlayer = (Triggering player)
- Set TempInteger = (Player number of TempPlayer)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueMode[1]
-
Then - Actions
- Set voteMode[1] = (voteMode[1] + 1)
- Set TempString = the Standard
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to DialogueMode[2]
-
Then - Actions
- Set voteMode[2] = (voteMode[2] + 1)
- Set TempString = the Reds versus Blues
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Game - Display to (All players) for 10.00 seconds the text: (playerColors[TempInteger] + ((RealNames[TempInteger] + colorEnd) + ( has voted for + (TempString + gamemode))))
- Set TempString = <Empty String>
- Set FinishedDialogueInteger = (FinishedDialogueInteger - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- FinishedDialogueInteger Less than or equal to 0
-
Then - Actions
- Countdown Timer - Start TimeOut as a One-shot timer that will expire in 0.00 seconds
- Countdown Timer - Destroy TimeOutWindow
- Else - Actions
-
If - Conditions
-
Events