Mystery

Status
Not open for further replies.
Level 9
Joined
Dec 21, 2006
Messages
490
i think i got routine-blinded and seek for help here.
it's about my votekick trigger.
if (votevalues >= voters/2 -1) {

leaving(integer(custom value 25 of marine[commander])
Game - end game for player integer(custom value 25 of marine[commander])

}
this is part of a bigger trigger. it triggers if the yes vote button is pressed. the really annoying part of this is that my custom action "leaving" works and does everything it should but it doesn't end the game for that certain player.
the marine[commander] is the unit of the player who started votekick. i save the player value as custom value on the unit. this number is stored as it should since my custom action leaving does exactly what it should to the right unit of the right player.
if i put the end game action infront it also doesn't work.

http://www.dict.cc/englisch-deutsch/routine-blinded.html
 
the marine[commander] is the unit of the player who started votekick
You mean the player who the votekick is about? Otherwise why would anyone want to votekick themselves out of a game?

Use the trigger debugger? You should be able to step through the script until it deviates from how you want it to behave. This can also check that the endgame action is run.
 
Status
Not open for further replies.
Back
Top