Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Conditional branch script with modulo comparison

cake maker

Villager
Xy$
0.00
Hi all,

Trying to get this working:

$gameVariables.value(0037) % 4 == 0

But it doesn't seem to work. It just always runs, and because I'm printing the value of the variable beforehand, I know it shouldn't always run, for example, if the value is 13, the remainder won't be 0, but 1.

Any help would be cool :D ! And are there are cool scripting tutorials around?
Thanks

Cake
 
Top