Posted by member 70043 on 2003-11-08 01:55:07
I need help making my mzscript add or subtract 1 to a var in my var.rc file.
My idea is to make !varset add 1 to the existing number or subtract 1 from the existing number.
EG: Var File: string 4
script file: !varset string (already at 4) -1 (make it three instead of 4)
so that my script will read an exact # from 0 to 9 on that string and no what to do for each different number...
I have tried simply !varset string "+1" which simply changes the var setting to read var +1 and so on... so it need it to actually add or subtract a number and rewrite it in the var file as the new number....
is there a way to do this??????
If so, please help so I can get this theme out.
Thanks
My idea is to make !varset add 1 to the existing number or subtract 1 from the existing number.
EG: Var File: string 4
script file: !varset string (already at 4) -1 (make it three instead of 4)
so that my script will read an exact # from 0 to 9 on that string and no what to do for each different number...
I have tried simply !varset string "+1" which simply changes the var setting to read var +1 and so on... so it need it to actually add or subtract a number and rewrite it in the var file as the new number....
is there a way to do this??????
If so, please help so I can get this theme out.
Thanks