The RPG Maker Resource Kit

Other Game Creation => Game Creation General Chat => Topic started by: otaku-dono on August 21, 2008, 04:41:52 AM

Title: A few questions on rm2k3
Post by: otaku-dono on August 21, 2008, 04:41:52 AM
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!
Title: Re: A few questions on rm2k3
Post by: Grafikal on August 21, 2008, 07:54:56 AM
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)


Title: Re: A few questions on rm2k3
Post by: otaku-dono on August 21, 2008, 10:28:47 AM
That's very helpful, thanks a bunch.
Title: Re: A few questions on rm2k3
Post by: maia on August 23, 2008, 05:08:33 PM
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
Title: Re: A few questions on rm2k3
Post by: Grafikal on August 23, 2008, 05:15:23 PM
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!