|
|
|
|
|
|
Posted: Thu Apr 05, 2007 11:17 am
Its probably in the others as well, but I only have 3, so I maight as well say which one it's for.
I'm having trouble understanding what variables do and how to control them. I was looking at the sample game and saw that they changed variables from time to time, and I need to know how important that change is. Pretty much, I'm asking 1. How to use variables 2. What are they used for.
|
 |
 |
|
|
|
|
|
|
|
|
Posted: Thu Apr 05, 2007 10:02 pm
Well, considering I only have RPGM2, I cannot tell you how to change the variables, but I can help you understand them better.
What variables are is basically numbers. Example, you can make a variable when talking to a certain person, the first time you talk to them, it turns to 1. Then, when it is 2, they say something different. When it turns to 3, you can make then say something different. And so on, I hope that helped you a little.
|
 |
 |
|
|
|
|
|
|
|
|
|
|
Posted: Fri Apr 06, 2007 6:28 am
What you just explained is called a mode in RPGM 3, and I understand those perfactly. And I looked at the sample game evn more now and I think I understaand.
What they do is if you want an event to happen after a certain variable number, you set the event to a shared variable, lets say 27, and I want the event to happen after the controlled variable goes up to 3. Whatever else has that shared variable, I can make it add 1 more variable to the event until there are 3, causing it to happen.
EX: You talk to a guy and he says, "Oh no! I lost my wallet! Can you ask around town if people have seen it?" Certain people in town will bump up the variable number that is required for his wallet to be found. Again, lets say its 3. After talking to the 3 people that know its whereabouts, the event you set to happen after the variable was set to 3 will happen. EX: "Oh! Here's the mans's wallet! It was right on the floor...in front of his house..."
Im not sure if I explained it clearly but...lets hope I did.
|
 |
 |
|
|
|
|
|
|
|
|
Posted: Fri Apr 06, 2007 12:22 pm
Yeah, I understood what you just said. What a variable bascally is a flag with numbers.
another example: I made a clock for RPGM2, I had to make three variables: Minutes, Hours, and Seconds. I just made it so that made the clock in my scripts.
Flags: Hold On and Off. Variables: Hold Numbers. Inputs: Hold words/letters.
|
 |
 |
|
|
|
|
|
|
|
|
|
|
Posted: Fri Apr 06, 2007 6:10 pm
|
|
|
|
|
 |
|
|
|
|
|