varible

Posted by Zendu on Fri 06 Feb 2004 07:01 AM — 2 posts, 11,899 views.

#0
quick question is there a command for adding to a varible, and reseting a varible


such as "you pick up a black rat"
rat +1
goldfromrats +40
USA #1
to add to variables, you will use GetVariable (its a MC inbuilt script function) and SetVariable to first get the contents, and then set them (after youve done your math).

Conventions differ between the scripting language youre using, so youll have to look and see for yourself.

To Reset a variable, I assume you mean back to 0, or whatever. Youll just use a straight SetVariable to set the value.