If you want the variable to be local, then you need to change every location to use /var instead of /set.

That could definitely be improved if you felt like it. For example, combining your /dec lines into one (/dec %variable 2).


Invision Support
#Invision on irc.irchighway.net