All 3 go together to form a Kick voting system. After i kick somone the game crashes.
Trigger 1:
Spoiler:
Kick 1
Events
Time - Elapsed game time is 2.00 seconds
Conditions
Actions
Dialog - Create a dialog button for Dialog labelled |c008000FFYes|r
Set Dialog_Button[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled |c008000FFNo|r
Set Dialog_Button[2] = (Last created dialog Button)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player Group - Add (Picked player) to Notvotedplayers
Events
Time - Elapsed game time is 2.00 seconds
Conditions
Actions
Dialog - Create a dialog button for Dialog labelled |c008000FFYes|r
Set Dialog_Button[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled |c008000FFNo|r
Set Dialog_Button[2] = (Last created dialog Button)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player Group - Add (Picked player) to Notvotedplayers
Spoiler:
Kick 2
Events
Player - Player 1 (Red) types a chat message containing -kick as A substring
Player - Player 2 (Blue) types a chat message containing -kick as A substring
Player - Player 3 (Teal) types a chat message containing -kick as A substring
Player - Player 4 (Purple) types a chat message containing -kick as A substring
Player - Player 5 (Yellow) types a chat message containing -kick as A substring
Player - Player 6 (Orange) types a chat message containing -kick as A substring
Player - Player 7 (Green) types a chat message containing -kick as A substring
Player - Player 8 (Pink) types a chat message containing -kick as A substring
Player - Player 9 (Gray) types a chat message containing -kick as A substring
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 7, 20)) Equal to 1
Then - Actions
Set Kick_player_Number = 1
Else - Actions
(Goes to 9)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 7, 20)) Equal to 9
Then - Actions
Set Kick_player_Number = 9
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Player Group - Remove (Player(Kick_player_Number)) from Notvotedplayers
Dialog - Change the title of Dialog to (|c008000FFDo you want + ((Name of (Player(Kick_player_Number))) + to be kicked?|r))
Player Group - Pick every player in Notvotedplayers and do (Actions)
Loop - Actions
Dialog - Show Dialog for (Picked player)
Wait 10.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Yes Greater than No
Then - Actions
Game - Display to (All players) the text: ((|c008000FF + (Name of (Player(Kick_player_Number)))) + has been kicked!|r)
Game - Defeat (Player(Kick_player_Number)) with the message: You have been kicke...
Set No = 0
Set Yes = 0
Set Kick_player_Number = 0
Else - Actions
Game - Display to (All players) the text: ((|c008000FF + (Name of (Player(Kick_player_Number)))) + was not kicked.|r)
Player Group - Add (Player(Kick_player_Number)) to Notvotedplayers
Set Yes = 0
Set No = 0
Set Kick_player_Number = 0
Else - Actions
Events
Player - Player 1 (Red) types a chat message containing -kick as A substring
Player - Player 2 (Blue) types a chat message containing -kick as A substring
Player - Player 3 (Teal) types a chat message containing -kick as A substring
Player - Player 4 (Purple) types a chat message containing -kick as A substring
Player - Player 5 (Yellow) types a chat message containing -kick as A substring
Player - Player 6 (Orange) types a chat message containing -kick as A substring
Player - Player 7 (Green) types a chat message containing -kick as A substring
Player - Player 8 (Pink) types a chat message containing -kick as A substring
Player - Player 9 (Gray) types a chat message containing -kick as A substring
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 7, 20)) Equal to 1
Then - Actions
Set Kick_player_Number = 1
Else - Actions
(Goes to 9)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 7, 20)) Equal to 9
Then - Actions
Set Kick_player_Number = 9
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Player Group - Remove (Player(Kick_player_Number)) from Notvotedplayers
Dialog - Change the title of Dialog to (|c008000FFDo you want + ((Name of (Player(Kick_player_Number))) + to be kicked?|r))
Player Group - Pick every player in Notvotedplayers and do (Actions)
Loop - Actions
Dialog - Show Dialog for (Picked player)
Wait 10.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Yes Greater than No
Then - Actions
Game - Display to (All players) the text: ((|c008000FF + (Name of (Player(Kick_player_Number)))) + has been kicked!|r)
Game - Defeat (Player(Kick_player_Number)) with the message: You have been kicke...
Set No = 0
Set Yes = 0
Set Kick_player_Number = 0
Else - Actions
Game - Display to (All players) the text: ((|c008000FF + (Name of (Player(Kick_player_Number)))) + was not kicked.|r)
Player Group - Add (Player(Kick_player_Number)) to Notvotedplayers
Set Yes = 0
Set No = 0
Set Kick_player_Number = 0
Else - Actions
Spoiler:
Kick 3
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 Dialog_Button[1]
Then - Actions
Set Yes = (Yes + 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Dialog_Button[2]
Then - Actions
Set No = (No + 1)
Else - Actions
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 Dialog_Button[1]
Then - Actions
Set Yes = (Yes + 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Dialog_Button[2]
Then - Actions
Set No = (No + 1)
Else - Actions