Heya peoples, I'm just wondering about a few things that could help me in creating my game. For starters: variables. They confuse me, and I hope someone can link me to a tutorial or something or just give me a short rundown on the basics. Thanks in advance!
If your name is Oliver, I'll help you. (https://rmrk.net/Smileys/default/emot-v.gif)
http://www.rpgrevolution.com/tutorial/variables_169.html (http://www.rpgrevolution.com/tutorial/variables_169.html)
That's very helpful, thanks a bunch.
Variables are numbers.
As an example you would use them for random occourances.
Var = random(4) // this means you will get a random of 1 - 4
if (Var == 0){
"I'll guess your name is Joe"
}
if (Var == 1){
"I'll guess your name is Tina"
}
if (Var == 2){
"I'll guess your name is Chloe"
}
if (Var == 3){
"Guessing games are retarted"
}
If you had
Var = 1
I guess your name would be Tina would show up no matter what.
Vars can hold numbers like how much gold you have or how many items (potions, herbs, ect) you are holding. You can make quests like you need 5 herbs, so you would set your variable to be how many herbs the player was carrying.
Switches are on / off
Yeah. What she said... :)
Another way to get aquatinted with them is to download someone's demo [preferably event system] for whatever RPGM and look at their events. Check out the variables and try to figure out what they do. Change stuff and see the different outcomes. Throw yourself in and experiment!