X and Y Variables
RPG RPG Revolution Forums
RPG Maker XP Discussion
May 19 2010, 04:35 PM
I would like to know how to add values to event variables through scripting, so I could assign the variables X and Y coordinate values.
May 19 2010, 09:59 PM
Uh, why would you need to use scripting? Can't you just use Control Variable, and Move Event when necessary?
Or, better, what do you mean by 'event variables'?
May 20 2010, 01:09 AM
Use this to change a variable through scripting
$game_variables[##] == value to set to
The ## is what id the variable have. The == you can set to +=, -=, *=, /= and so on.
May 20 2010, 06:47 AM
$game_variables[##] == value
Won't work. Just do one "=".
$game_variables[##] = value
May 20 2010, 12:29 PM
Oh yea I forgot. Two = is for the checking.
May 25 2010, 03:49 PM
Thanks for helping guys!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
Invision Power Board © 2001-2013
Invision Power Services, Inc.