PDA

View Full Version : Really dumb question about veriables heh


The White JackeL
09-26-2005, 01:40 AM
Ok, i dont really know what they are or what they do haha would any one be willing to tell me really what they do how to use them and all that? PLS! i beg of you all!

eh hem ty

Omnislash024
09-26-2005, 02:18 AM
To be honest, I don't know either. Though it tells you a little in the manual.

Rodak
09-26-2005, 06:08 AM
This is a recurring question and perhaps somebody should pick one of the many topics about variables and sticky it.

Here's my nomination:

http://www.pavilionboards.com/forum/showthread.php?t=3149

And, for convenience, here is my contribution to that thread:

If you can use flags (switches) you can use variables.

A flag is a variable with a fixed value of either 0 or 1.

0 is off and 1 is on.

Instead of tunring on your flag (or flipping your switch) just set your variable equal to one. Variables all begin with a value of zero, so it is just like a bank of switches all set to off.

As you get good at this limited use, you will find many more.

If anyone has specific questions, just ask.

Peace.

You could also think of variables as switches, but of the Toggle variety with 3 settings indstead of 2, or for larger values think of them as potentiometers.

They really are nothing more than a number that you can change at will.

In RPGM2 you could rename them to help with scripting and keeping track of which have been used. That seems to be missing here.

I had to create a dummy script to tell me which variable I use for what purpose. If I am mising a way to rename these, let me know!

Hope that helps.

Peace.