Hope you all are doing great,
Quick question, how can I make an if statement with multiple options? The thing is that I have a variable in my game that is increased +1 after each game when a code is entered, I need to throw a message (obj_winner) every 20 games (I mean at game 20, game 40 and 60), I know that the best solution would be to reset the variable value to 0 every 20 games but the problem is that the game has a very special prize (obj_bigprize) when the game number 65 is reached so I cannot reset the variable till game number 65, this is my code but the object winner is being show after every game when player enters a code:
if obj_save.checking==2 && global.accumulated =20 || 40 || 60{
instance_create(227,-300,obj_winner);
global. accumulated +=1
}
else{
instance_create(227,-300,obj_invalidcode);
}
if obj_save.checking==2 && global.accumulated=65{
instance_create(227,-300,obj_bigprize);
global.acumulado=0
}
I値l really appreciate your advice pals.



Find content
Male
