|
|
|
 |
Posted 2004-06-14, 04:25 PM
in reply to NewbAtGames's post "I need help with triggers and switches"
|
 |
 |
 |
Variables:
These are storage areas for numbers. ANY number. For example, you can set the number to be how many gold you have, and double it to see how much you'd win in a poker game in your RPG. Variables are used for counting, for keeping track of time, whatever you feel you need. If it's number based, it's probably best to do it in a variable. You can do some basic math functions on the variable as well, and even add/subtract/etc other variables! You can even have it "remember" what map number / x position / y position you're in (using the Memorize Position event command).
Pretty much anything you can do with a number, you can do with a variable. There's probably an exception somewhere, but I can't think of it at this moment..
Switches:
Variables with only two settings: ON and OFF. Used mainly for things like treasure chests and characters that "aren't there" after an event. Basically, if you don't need more than 2 "states" for an event, use a switch.
|
 |
 |
 |
|
|
|
|
|
|
|