- Joined
- Jul 23, 2004
- Messages
- 162
these are my two triggers in which i need help on:
vote2:
Events
Player - Player 1 (Red) types a chat message containing tdm as An exact match
Actions
If ((This trigger) Equal to (This trigger)) then do (Set GType[2] = (GType[2] + 1)) else do (Do nothing)
Wait 1.00 seconds
Trigger - Turn off (This trigger)
choosegametype:
Events
Map initialization
Actions
If ((GType[1] + GType[2]) Equal to (Number of players in (All players matching (((Matching player) controller) Equal to User)))) then do (If (GType[1] Greater than or equal to GType[2]) then do (Game - Display to (All players) the text: game set to CTF! ) else do (Game - Display to (All players) the text: Game set to TDM! )) else do (Do nothing)
If ((GType[1] + GType[2]) Equal to (Number of players in (All players matching (((Matching player) controller) Equal to User)))) then do (Set GType[1] = 0) else do (Do nothing)
If ((GType[1] + GType[2]) Equal to (Number of players in (All players matching (((Matching player) controller) Equal to User)))) then do (Set GType[2] = 0) else do (Do nothing)
If ((GType[1] + GType[2]) Equal to (Number of players in (All players matching (((Matching player) controller) Equal to User)))) then do (If (GType[1] Greater than or equal to GType[2]) then do (Trigger - Turn off timer <gen>) else do (Trigger - Turn on timer <gen>)) else do (Do nothing)
sorry if that is a little long but i cant find whats wrong with these 2 triggers and why vote2 isnt activating choosegametype
vote2:
Events
Player - Player 1 (Red) types a chat message containing tdm as An exact match
Actions
If ((This trigger) Equal to (This trigger)) then do (Set GType[2] = (GType[2] + 1)) else do (Do nothing)
Wait 1.00 seconds
Trigger - Turn off (This trigger)
choosegametype:
Events
Map initialization
Actions
If ((GType[1] + GType[2]) Equal to (Number of players in (All players matching (((Matching player) controller) Equal to User)))) then do (If (GType[1] Greater than or equal to GType[2]) then do (Game - Display to (All players) the text: game set to CTF! ) else do (Game - Display to (All players) the text: Game set to TDM! )) else do (Do nothing)
If ((GType[1] + GType[2]) Equal to (Number of players in (All players matching (((Matching player) controller) Equal to User)))) then do (Set GType[1] = 0) else do (Do nothing)
If ((GType[1] + GType[2]) Equal to (Number of players in (All players matching (((Matching player) controller) Equal to User)))) then do (Set GType[2] = 0) else do (Do nothing)
If ((GType[1] + GType[2]) Equal to (Number of players in (All players matching (((Matching player) controller) Equal to User)))) then do (If (GType[1] Greater than or equal to GType[2]) then do (Trigger - Turn off timer <gen>) else do (Trigger - Turn on timer <gen>)) else do (Do nothing)
sorry if that is a little long but i cant find whats wrong with these 2 triggers and why vote2 isnt activating choosegametype