Updating objects on a page via other pages

w052lmw
06 Oct 2016, 20:24

Hi,

Trying to update a cashflow statement by updating the objects on different pages and then selecting the cashflow page and having it display the updated cashflow statement. Currently we have on a different page to update an object within the cashflow statement page and then have a link to the cashflow page on the different to show the update but it's just blank. Any suggestion would be helpful. Thanks


hegemonkhan
07 Oct 2016, 21:41

I don't think... you can have other Objects in the 'Game Book' version, aside from Pages (Page Objects), the 'player' Player Object, and the 'game' Game (settings and etc) Object.

so, that means (unless I'm mistaken), you can only use 'player' and/or 'game', for an example:

(addition example):
player.cash = player.cash + 50
~OR~
game.cash = game.cash + 50


see this guide thread on Attributes and the 'if' Script:

http://textadventures.co.uk/forum/samples/topic/5559/attributes-and-if-script-guide-by-hk

though, if you're using the 'Game Book' version, then you access the scripting via:

'whatever' Page -> 'whatever the tab it is called' Tab -> Page Type: [script] or [script+text] -> (add new script -> etc etc etc)


w052lmw
11 Oct 2016, 21:19

Ok, I think I meant attributes instead of the objects. Same questions, but of the objects attributes. Sorry for the confusion. Thanks


hegemonkhan
11 Oct 2016, 23:34

do you still need help on how to use Attributes? With getting your 'cashflow' Integer Attribute to work (addition, subtraction, displayment) ???