Main Menu
  • Welcome to The RPG Maker Resource Kit.

Help? Variables

Started by eliralena, December 30, 2009, 09:10:26 AM

0 Members and 1 Guest are viewing this topic.

eliralena

I am really confused when it comes to variables and need to explained to me in dumb terms
I am trying to make it so then your character gets sent to a random location... O.o  I'm doing testing on it right now so... I don't get it @__@

shaz

Use Control Variables to set a value for your random number.  Choose the Random option, enter 1 as the low number, and for the high number, enter however many possibilities you want for the destination (my example uses 5).

Then create a series of nested conditions, and inside each one, put a different destination.


All you're doing is setting a variable to a random number, and then taking an action depending on the value it contains.


If you have a LOT of locations to teleport to, there's a more efficient way of nesting the conditions, but I won't go into it here.  Someone who's more awake than I (it's 1 in the morning) might like to expand on that.


Always remember you're unique.
Just like everybody else.

eliralena


eliralena

Okay I do have to say this again because I went in and tested it THANK YOU SO MUCH!!!  O_o if I could give you rep right now I totally would!!

shaz

Always remember you're unique.
Just like everybody else.