Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

[Answered] Variables on Specific Pages Only

14 years ago
I am creating a game which includes the common variable Money, but it doesn't factor into the game until late and I don't want to have the icon "MONEY: 0" for the entire first half of the game. How do I make the money icon appear when it is used and stay appeared then, but not before?

[Answered] Variables on Specific Pages Only

14 years ago
By Icon, you mean text right?

Paste the following into any page where you want it to appear:

Money: %%MONEY%%

Also, make sure the variable name is actually money. If it's cash then:

Money: %%CASH%%

The %%VARIABLE%% is replaced simply by the value held in the variable.

[Answered] Variables on Specific Pages Only

14 years ago
Do you mean paste it into the place where I write the story on that page or paste it in the box that appears when I press the := icon? Because I tried the latter and it didn't work. I am a complete rookie to scripting by the way.

[Answered] Variables on Specific Pages Only

14 years ago
The text box, the := is for scripting.

[Answered] Variables on Specific Pages Only

14 years ago
Please read my comments on Reanimation 2 before you publish your next story. Also, I'm moving this to the advanced editor forum! :)

[Answered] Variables on Specific Pages Only

14 years ago
You can have it automatically do it for every page after a certain point, but that requires knowledge of scripting and $PAGEID scripts in particular.

[Answered] Variables on Specific Pages Only

14 years ago
Thank you. Much appreciated and I'll try to apply your criticism to my upcoming game.

[Answered] Variables on Specific Pages Only

14 years ago
Wonderful! :)

At some point, I'll write an article that properly summarizes everything you can do with the AE. However, despite that one not being there, you should check out all of the others under help and info :)