Now all the commands for var its alot!
Lets go
Copyvar
A little command that's pretty easy to explain. It just copies what's stored in one variable to another. We will use this more and more often as we progress through the tutorial.
Here's the explanation:
Let 0x8008 be "A" and 0x800D be "B"
Code:
copyvar 0x8008 0x800D
Variable "B" copies onto variable "A".
I know that it's backwards, but that's just the way that copyvar is.
Pretty easy, don't you think?
Copyvarifnotzero
This is what some might call a little "add-on" to the copyvar command. The name says it all, doesn't it? It says, “copy variables, if not equal to zero”.
Code:
copyvarifnotzero 0x800D 0x8004
That's about it. Pretty basic, don't you think?
Setvar
This is a pretty complicated command and has a lot of uses, so I'm just going to give an explanation of the command but not give examples of the different ways to use it. In the following few sections, you'll see some ways of using it.
Setvar is pretty simple naming. It says “set to variable”. It sets a certain value, ranging from 0x0 to 0xFFFF, to a certain valuable. It's set out like this:
Code:
setvar [variable] [value]
Here's just a sample view of how the command appears:
Code:
setvar 0x8008 0x1
If it's still hard to think about, try thinking of it as a msgbox @(text) 0x5. Depending on whether or not we choose "Yes" or "No", it assigns a certain value to 0x800D. With setvar, we can choose the variable and the value that is assigned.
You'll see more of this from this point on.
That was it i hope you leared alot WiPuch!
A little command that's pretty easy to explain. It just copies what's stored in one variable to another. We will use this more and more often as we progress through the tutorial.
Here's the explanation:
Let 0x8008 be "A" and 0x800D be "B"
Code:
copyvar 0x8008 0x800D
Variable "B" copies onto variable "A".
I know that it's backwards, but that's just the way that copyvar is.
Pretty easy, don't you think?
Copyvarifnotzero
This is what some might call a little "add-on" to the copyvar command. The name says it all, doesn't it? It says, “copy variables, if not equal to zero”.
Code:
copyvarifnotzero 0x800D 0x8004
That's about it. Pretty basic, don't you think?
Setvar
This is a pretty complicated command and has a lot of uses, so I'm just going to give an explanation of the command but not give examples of the different ways to use it. In the following few sections, you'll see some ways of using it.
Setvar is pretty simple naming. It says “set to variable”. It sets a certain value, ranging from 0x0 to 0xFFFF, to a certain valuable. It's set out like this:
Code:
setvar [variable] [value]
Here's just a sample view of how the command appears:
Code:
setvar 0x8008 0x1
If it's still hard to think about, try thinking of it as a msgbox @(text) 0x5. Depending on whether or not we choose "Yes" or "No", it assigns a certain value to 0x800D. With setvar, we can choose the variable and the value that is assigned.
You'll see more of this from this point on.
That was it i hope you leared alot WiPuch!