Quote: losl: then sarajane came to rescue with tp ^_^ |...
blade2k » articles & tutorials

jump to:
Tutorials » Game Creation » RPG Maker 200x

Varibles #2


Reading Article
Author: Ramza
Posted on 08/02/2004
print :: back to list

l

egal stuff:
even though i wrote this just now... and at the time of writing this, I don't even know what I was gonna write in the tutorial... so bleh.. err anyways... this is property of me (Ramza) and cannot be used on any website without my permission...

This is a basic guide to variables, written so that even a n00b who doesn't know how to use switches can hopefully get the info out of this

Variables are your friends! - by Ramza

ok, in reading this tutorial, I understand that you don't have a clue about variables, and all those other ones were too confusing to follow... so I've made this as easy to follow as possible for the n00b who has a thist for knowledge... enjoy!

Variables are a value... nothing more than that... think of them as little honey combs or something. Each variable is a number... and that number contains another number... so a variable is a shell that holds a number... any number really... you can set the number into the variable.. that's why they're so handy

Different things can be set into variables through events... map ID's # of saves... etc... but the main use of Variables is in conjunction with a fork condition... because what good is putting the number into a variable if you can never retrieve that number again?

To change a variable (or set one for the first time) in an event use the change variable command... then you can set it... or add a number to it.. or even add another variable to it...

To show the contents of a variable in a text box simply use the command v[x] where x equals the variable's ID number. ex v[32]

Fork conditions are an important part of variables as well... using them you can make events happen based on what number is in a variable. A fork condition is literally that... a fork of conditions based on preset values...

In other words, you can make a custom system by checking if a variable that you set is a certain number... a practical use of this is a cursor in a custom menu. Where a number in the variable represents which option the pointer is on... then you can fork conditions based on where the pointer is... which is the simpler term for what number is in the cursor position variable.

I hope that helps you... happy variabling (that isn't a word, but it's my word now.... Mine

~ Ramza