Help
-
Search
-
Members
-
Calendar
Full Version:
X and Y Variables
RPG RPG Revolution Forums
>
Game Engines
>
RPG Maker XP Discussion
SuperStarVX95
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.
Unka Josh
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'?
stripe103
May 20 2010, 01:09 AM
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
May 20 2010, 06:47 AM
Actually...
CODE
$game_variables[##] == value
Won't work. Just do one "=".
CODE
$game_variables[##] = value
stripe103
May 20 2010, 12:29 PM
Oh yea I forgot. Two = is for the checking.
SuperStarVX95
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
click here
.
Invision Power Board © 2001-2013
Invision Power Services, Inc.