Adding page links in script

Hi all,
I have already completed one gamebook and one text adventure. I have begun to create a second gamebook but have come across a problem I've never had before. When using a script (not text), I have put:
add page link from page.... to page .... with link text...

I have completed it with two existing pages and my link text is "look up" however for some reason the link isn't appearing in the game.

I've gone back to my previous gamebook and have noticed I've used exactly this before but have had no problems. There is no error when played the link just simply doesn't appear.

Many thanks for your help!


Odd question...
Why are you creating exits with script?
Why not just pre-create the map and all the exits, then work with that?
If needed, hiding or showing exits as needed?


This is a gamebook not a text adventure (I thought it was just text adventures where you use a map) In a gamebook it uses a similar idea to a powerpoint where you use hyperlinks to link between different pages with text and scripts. It's not an exit as such just a decision.


Do you mean Gamebook? Possible problem is that the names of the page its on and the page its going to are misspelled or in the wrong order (I find this is the most common).

The page you're on has to be the first one, and the page you're going to has to be the second, otherwise the link won't show up.

Also a comma or parenthesis could be misplaced. It has to look like this:

AddPageLink (PageYouAreOn, PageYouAreGoingTo, "Look up.")

So make sure the names of the pages are spelled correctly and all that. Say the page link you wanna add is named LookUp. And the page you're currently on is named JustStandingThere. It should look like this:

AddPageLink (JustStandingThere, LookUp, "Look up.")


Ah sorry Gamebook, yes! Still new to this! Ok I'll have a look although I think they're both spelt right there's no harm in double checking.
Thank you.


(and in the correct order!) :)


Actually... GameBook does have a "map" function...
In the UI, for each page,
There is an Options...
There is where you enter the links to other pages.
You can add new rooms on the fly, or link to an existing page.
There is no need to create exits (or links) in code.


Oh ok thank you I have done it all as links so far in my previous game and this one so I might just try to fix whatever the problem is. It doesn't seem to be the order or spelling though.


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

Support

Forums