how to toggle a higher number?
i know how to toggle between 0-1 and so on.
game.howmany to (gamehowmany+1)%2
but if i want to toggle betweem 6 and 7
how would go about doing that??
game.howmany to (gamehowmany+1)%2
but if i want to toggle betweem 6 and 7
how would go about doing that??
Comments
game.howmany to ((game.howmany+1)%2)+6
does that help?
Cant wrap my head around it... pleeease help a brother out!
game.toggle to (game.toggle+1)%2
if game.toggle = 0
Change atribute game.howmany = 1
otherswise
Change attribute game.howmany = 2
game.toggle = ((game.toggle - 5)%2)+6
You need to subtract the fixed distance between your value to get to a 0 and 1 toggle base and then re-add the distance value back to it to adjust the 0/1 result back to a 6/7 level.
Since you're using rules anyway you can cut out any use of mod and just say
if toggle = 6
change attrib toggle to 7
Otherwise
change attrib toggle to 6
Just make sure you use otherwise and not 2 separate rules.