Variables in a Gamebook that change the story

awsomethingy
Is there a way to make it so: If you get to a certain page, a future page will have different text, because you saw that previous page. Basically, what I'm asking is if you can make a choice in the game, effect the game later on.

jaynabonne
You can have pages that are script only or script/page text combos. The script can set attributes (e.g. on the game object) that later code or text processing can then key off of to vary what you see.

awsomethingy
jaynabonne wrote:You can have pages that are script only or script/page text combos. The script can set attributes (e.g. on the game object) that later code or text processing can then key off of to vary what you see.


But how do I do that? Is that what the 'if flag' thing is for?

onimike
Up top on page look for text option. Click it and choose text and script, now under run script choose change font. Now choose font then type what you would like and there you have it, it only changes current page. Heres a demo which first page is normal and second page is different just look at the script. Hope this helps :)

awsomethingy
onimike wrote:Up top on page look for text option. Click it and choose text and script, now under run script choose change font. Now choose font then type what you would like and there you have it, it only changes current page. Heres a demo which first page is normal and second page is different just look at the script. Hope this helps :)


Thank you so much!!

awsomethingy
jaynabonne wrote:You can have pages that are script only or script/page text combos. The script can set attributes (e.g. on the game object) that later code or text processing can then key off of to vary what you see.


Thank you so much, also!!

onimike
No problem!

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums