Kick Trigger Problem...

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Kick Trigger Problem...

Post by Black-Hole »

Im not doing so well with my GUI triggers this week. This set of triggers are causing the game to crash. Can you tell me how to fix them? or give me a better one.

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
Trigger 2
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
Trigger 3
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
You do not have the required permissions to view the files attached to this post.
User avatar
Hot
Junior Member
Posts: 30
Joined: March 26th, 2008, 2:54 pm

Re: Kick Trigger Problem...

Post by Hot »

Well, the trigger worked for me.
The problem must be somewhere else.
PS: I made one part of the trigger smaller & added a function that you forgot (reset the playergroup).
DL vvvv
You do not have the required permissions to view the files attached to this post.
Once here was something.