Main Menu
  • Welcome to The RPG Maker Resource Kit.

A few questions on rm2k3

Started by otaku-dono, August 21, 2008, 04:41:52 AM

0 Members and 1 Guest are viewing this topic.

otaku-dono

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!
I've got a plan so cunning you could brush your teeth with it.

Grafikal


otaku-dono

That's very helpful, thanks a bunch.
I've got a plan so cunning you could brush your teeth with it.

maia

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
community project for RPG Maker VX: http://rmrk.net/index.php/topic,33789.0.html

Grafikal

#4
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!