Home > Tutorials > Game Development > Variables
Variables
A Variable is very easy to use.
Variables can be used to remember lots of different things, such as: Being able to have jobs, catching chickens, remembering some sort of number that can change over time.
To start, just click "Control Variables..." on the first page of event commands.
(Example)
Click "Single".
(Example)
Then name your Variable, I'm going to use "Tut Variable".
(Example)
When giving a variable something to remember always have "Set" checked.
(Example)
Then give your variable something to remember.
(Example)
Click "OK", and when the event runs it will set Variable "0001: Tut Variable" to "3".
So, you can make a character say the remembered number.
Take a look at my event.
(Example)
Notice, in the character's speech I used "/V[1]", this makes him say the variable in Variable 0001's memory.
Now take a look at it in gameplay.
(Example)
Now, you will be able to use basic variables.
;)
|
|
Details
|
|
Tutorial:
|
Variables |
|
Date Listed:
|
2008-08-11 |
|
Author:
|
VxOsx
|
|
Total Hits:
|
336 |
|
|