Even/Odd

I’m making a turn system for combat. Does anyone know if there is a way to execute a goto command based off of if a var value is even or odd? I want all the even turns to be player turns(Unless there is a status effect like sleep in effect.) Is there a way to make this happen?

*if ((var modulo 2) = 0)
    *goto even
*else
    *goto odd

Or something along those lines.

2 Likes