The name says it all. It says "Add to Variable". Before I explain what it does, I'll show you how it's set out. Code: addvar [Variable] [Value]
addvar will add the designated value to the value that is already stored within the designated variable. What a mouthful. If that's a little complicated, I'll simplify it. As an example, let's say the variable 0x4036 already has the value 0x1 stored into it, and we want to add 0x3 to it to make it 0x4. I'll put it into an example: Code: setvar 0x4036 0x1 addvar 0x4036 0x3
That's pretty much all there is to it. It's up to you to find a use for it. Subvar
Of course, since we can add to a variable, we must be able to subtract from the variable. It's set out in the exact same way as addvar: Code: subvar [Variable] [Value]
Since it's just the opposing function to addvar, I think I can just go straight through to the example: Code: setvar 0x4004 0x6 subvar 0x4004 0x03
In the example, it takes 0x3 from what is stored in the variable 0x4004.