Gamebook State Tracking - Options

MulderAndScully
26 Nov 2016, 20:40

Hi,

I have what I think ought to be a simple problem - but if at all possible I'll need a simply-described solution, as I have zero idea how coding works. I'm just using the basic Gamebook version of Quest.

So here's what's goin on -

At the beginning of my game the player can choose between two characters - a woman who carries a bazooka and a man who carries a machete. I have flags in place at this point to record which character you are and what weapon you have. Soon afterwards, they're attacked by a dinosaur. I know how to use the 'if' function so the game knows which flags have already been activated or which pages have already been seen, and I can use this to show the appropriate text. But how do I get ONLY the appropriate 'option' to show? As in, if you're carrying the machete and not the bazooka, how do I get the game to only display the option to fight using the machete and hide the option to fight with the bazooka? I can't find any way to control this.

Anyway, all thoughts appreciated, but I'll need REAL simple, push-this-button-next kinda instructions.

Thanks!


hegemonkhan
27 Nov 2016, 09:53

we need you to better describe what you've got set up already and what and how you want what... and/or even better, to post your entire game code, as that way we can help you the best.

if you're interested in trying to learn some code, learn quest better, and want to try to do stuff on your own, you can take a look here:

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

and there's also these links too:

http://docs.textadventures.co.uk/quest/
http://docs.textadventures.co.uk/quest/guides/
http://docs.textadventures.co.uk/quest/guides/character_creation.html
http://docs.textadventures.co.uk/quest/guides/showing_a_menu.html


please feel free to ask if you got any questions or need help/explanation with anything.


Deckrect
27 Nov 2016, 19:26

Use the "Add page link or the "Remove page link" to add or remove the links you want adding or removing. It is a script, as you may imagine by now.