Make Dialog
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Dialog - Change the title of VotePlayer to Vote on player to...
Dialog - Create a dialog button for VoteScore labelled Player 1
Set VotePlayerButton[1] = (Last created dialog Button)
Dialog - Create a dialog button for VoteScore labelled Player 2
Set VotePlayerButton[2] = (Last created dialog Button)
Player Group - Pick every player in (All players) and do (Dialog - Show VotePlayer for (Picked player))
Vote Player 1
Events
Dialog - A dialog button is clicked for VotePlayer
Conditions
(Clicked dialog button) Equal to VotePlayerButton[1]
Actions
Set VotePlayerResult[1] = (VotePlayerResult[1] + 1)
Result Player 1
Events
Conditions
VotePlayerResult[1] Greater than VotePlayerResult[2]
Actions
Game - Display to (All players) for 10.00 seconds the text: Player 1 has won...
Result Player 1
Events
Conditions
VotePlayerResult[1] Greater than VotePlayerResult[2]
VotePlayerResult[1] Greater than VotePlayerResult[3]
VotePlayerResult[1] Greater than VotePlayerResult[4]
Actions
Game - Display to (All players) for 10.00 seconds the text: Player 1 has won...