The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: eliralena on December 30, 2009, 09:10:26 AM

Title: Help? Variables
Post by: eliralena on December 30, 2009, 09:10:26 AM
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 @__@
Title: Re: Help? Variables
Post by: shaz on December 30, 2009, 02:47:50 PM
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.


Title: Re: Help? Variables
Post by: eliralena on December 30, 2009, 05:45:55 PM
Thanks a lot!
Title: Re: Help? Variables
Post by: eliralena on December 30, 2009, 09:00:50 PM
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!!
Title: Re: Help? Variables
Post by: shaz on December 30, 2009, 09:01:47 PM
;)  You're welcome.