Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Displaying a Variable on a Page, But Not All Pages

11 years ago

I'm in the process of making a storygame that involves the ability to become friends (or enemies) with certain characters. How would you script a specific variable to appear on one page only? (or a specific set of pages that you choose) 

For example: 

The player speaks to a girl named Jane. 

RELATIONSHIP is 25.


I wouldn't want this relationship variable to appear on every single page of my story because it only pertains to Jane. 

If someone could help me with this, it would be very much appreciated. Thanks.

Displaying a Variable on a Page, But Not All Pages

11 years ago

If you do:

%%RELATIONSHIP%%

On the page (not script, the actual page), then it displays the value of the variable. So just go:

Relationship is %%RELATIONSHIP%%.

On every page you want it to show up on.

Displaying a Variable on a Page, But Not All Pages

11 years ago

This worked perfectly, thank you!