|
|
|
 |
Posted 2006-07-31, 10:23 AM
in reply to achim's post "Help!!!"
|
 |
 |
 |
Rmxp? Rm2k3?
Nevermind that, it's all the same.
Switch- like a light switch.
If Light=On: Wake up
If Light=Off: Sleep
A switch is something that can determine wether or not to start a proccess, in this case we used something physical, but in the program it uses data.
Let's say you had made a bedroom. Great? No, it needs more. near the door, put an event, and set it to action key.
Conditional branch: if light=off
<>Switchlight=on
Else handler: if light=on
<>Switchlight=off
That's just the basic idea of it, not the actual rpgmaker lingo.
But it does get the point across.
Then, make a 2 page parrellell proccess.
Page 1-Precondition Light=Off
--------
Screen tint dark
Page 2-precondition light=on
--------
Screen tint light
And then you have a light switch which turns the light on and off.
Variables are simple, but no one really tells you what they are.
A variable is like a bag, and there is a variation of what is in that bag. cookie? mouse?
But in the virtual world a cookie is the number 1 and the mouse is number 2.
All they are, and all they will ever be, are numbers.
Lets jump ahead, though.
Say you are making a HUD for your game, like a woodcutting exp bar or something.
You would have a variable entitled woodcutting.
And then along the way, you'll need to make a script, then all you would need to do is set the coordinates to show the variable on your HUD.
Now it's just 0 and your like: ZOMG I BE NOT WORK LOLS
Well, you would need to up it somehow, wouldn't you? Right!
After going through that long procces of figuring out a tree-cutting proccess, at the end of the event when the tree falls, just add, lets say... 5 to variable woodcutting. tada, it now says 5. and through even more tedious work, it could become a level.
Summary is:
Switch is a trigger for events and soforth
Variable is a number that changes and can affect other proccesses(exp is a variable, you know, it's built into the script of rmxp.)

|
 |
 |
 |
|
|
|
|
|
|
|