Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Variables on One Page

7 years ago

I want the option to be able to put one of my variables on a certain page, so I can have the variable only show until you change the page you are on.

Variables on One Page

7 years ago
Moved to advanced editor forum because this is already a thing. Just put %%NAME%% on a page and it will display the value of that variable (in this case name) where you put it.

So if you wanted the variable "health" on a page you would do:

Health: %%HEALTH%%

Variables on One Page

7 years ago

Is that scripting?

Variables on One Page

7 years ago
You'd put this right on the page with the rest of the text:

Health: %%HEALTH%%

And when you play the game it will read:

Health: X

Where X is the numeric value of the player's current health.

Variables on One Page

7 years ago

How do I put the value of the variable? For example if I wanted to say my character had 20 health where would I write the value in?

Variables on One Page

7 years ago
That value will be whatever the character's current health is. On your first page, it would be whatever the initial health was set as. Changes to that value will come from your events/scripting.

Variables on One Page

7 years ago
Sort of, but you put it on the page, not in any scripts.

Variables on One Page

7 years ago
This article by the lovely and talented BerkaZerka deals with it.

Variables on One Page

7 years ago
http://chooseyourstory.com/forums/advanced-editor-forum/message/20743

Bah. Nobody help this kid, we all tried to a month ago and apparently it didn't stick.