Help - Search - Members - Calendar
Full Version: X and Y Variables
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
SuperStarVX95
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.
Unka Josh
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'?
stripe103
Use this to change a variable through scripting
CODE
$game_variables[##] == value to set to

The ## is what id the variable have. The == you can set to +=, -=, *=, /= and so on.
Twin Matrix
Actually...

CODE
$game_variables[##] == value


Won't work. Just do one "=".

CODE
$game_variables[##] = value
stripe103
Oh yea I forgot. Two = is for the checking.
SuperStarVX95
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 click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.