- 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
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