I was wondering if there was a command thats the opposite of the command. if (player.ID == CSR) {SetGlobalInt(11,1);}
Or in other words I need my game to change the variable to 11,0 if the player character is not CSR.
use != instead of ==
Thx for the help
For future reference, a list of operators supported in AGS is in the Manual. (http://www.adventuregamestudio.co.uk/manual/Operators.htm)
Or, you could do this:
if (player == cCsr) SetGlobalInt(11, 1);
else SetGlobalInt(11, 0);
Seeing as you said you wanted global-int 11 to be 1 if the player was CSR, I put that code, with the code to make it 0 if the player isn't CSR (via the else statement).