Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Similar to display on all pages but only for part?

10 years ago

I need to know if there's a way (and if so, how to do it) to display a variable on a portion of the pages without having to type it in on all those pages. Example: In my game there's a character creation stage, and I don't want the variables HUNGER and HEALTH to show up on those pages, but I want it to show up on every other page in my story (it's an island survival rpg). Is there a way to do that using global script or page script or something?

Similar to display on all pages but only for part?

10 years ago

Global page script:

IF %SHOW = 1 THEN
BEGIN
$PAGETEXT := $PAGETEXT + "Hunger: " + %HUNGER
$PAGETEXT := $PAGETEXT + "Health: " + %HEALTH
END

Set Show = 1 after you do the character creation stage.

Similar to display on all pages but only for part?

10 years ago

thanks Killa, I owe you one. P.S you're Survive the Zombies was brilliant man! Loved it!

Similar to display on all pages but only for part?

10 years ago

ermmmm not working. now it won't show it at all... a little more help please?

Similar to display on all pages but only for part?

10 years ago

Are the variables you're using the same name as the ones in the code?

Do you actually set the value of %SHOW to 1 after the character creation stage?

Similar to display on all pages but only for part?

10 years ago

Xiro PM'd me and explained, but thanks anyway Killa! *gives waffle for helping*