Search for variable to remove page link?

So first off let me say I'm kind of a noob at this. But that's okay, I guess. What I have going on is, I have four page links in a game book I am making, and they all lead to pages with variables. Then that leads the player back to the initial page to make more choices. I already know how to make the variables and everything, but not how to remove the pages. A non-code example:

You have four girls to think about: Amy, Amber, Rose and Crystal. Say you think about Rose, so you click her link. The page gives you some detailed text about Rose and, unknown to the player, gives a variable of something like "PlayerLovesRose". So now you can go back and think about someone else- well, you don't want to think about Rose again, so we want to get rid of that and have only three options, not all four still. And obviously if you think of another girl, that adds another variable, you'd now have only two choices left.

I tried this with the "while" command, stating that while a certain variable is true that the page that would normally lead to it should be false, but this seems to result in an error. Any way around this?


Something like:
if playerLovesRose= true, then hide page link... (?)
Perhaps you need to think backwards...
if playerLovesRose= false, then show page link...
I'm not to up with gamebook, but the logic should work.
I also think there is a built-in "delete used links"... or something like that.


Just skimming the core code (never used gamebook mode), I think this shouldn't be too hard.
Assuming the page where you pick a girl is called choicespage, and the page for rose is named rose, then on rose's script you'd want to put:

dictionary remove (choicespage.options, "rose")

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

Support

Forums