Problem with page links in Gamebook mode

SuperGuy
17 Jun 2014, 01:41
I was recently working on a Gamebook and decided to test it out, but after the second page there was an error with it

I receive this when I click the link: Error running script: Error evaluating expression 'DictionaryContains(player.parent.options, command)': DictionaryContains function expected dictionary parameter but was passed 'null'


I've sent an email on this issue too.

Pertex
17 Jun 2014, 09:37

SuperGuy
19 Jun 2014, 03:34
Pertex wrote:Have a look here: viewtopic.php?f=10&t=4358&hilit=DictionaryContains



Um that is a useful link, but..........

I have not downloaded the files of my gamebooks and I am a bit of a code noob, I get it but I don't no where to put the fix.

Pertex
19 Jun 2014, 16:34
are you working online or offline?

SuperGuy
21 Jun 2014, 03:07
Pertex wrote:are you working online or offline?



I am working online using the site itself, I have not downloaded the files to work offline.

jaynabonne
21 Jun 2014, 06:46
Did you try method 2 on the link Pertex gave you?

2) The GUI way. On a page that will have no links, still create a link and then delete it. For example, click "Link to Existing Page", pick some random page and then enter random text for the link. Then click the new link and delete it. That will leave an empty options dictionary on the page.


SuperGuy
22 Jun 2014, 03:55
jaynabonne wrote:Did you try method 2 on the link Pertex gave you?

2) The GUI way. On a page that will have no links, still create a link and then delete it. For example, click "Link to Existing Page", pick some random page and then enter random text for the link. Then click the new link and delete it. That will leave an empty options dictionary on the page.


Ah now it comes together,

one last thing does this work for one link or ALL links in the same game book

jaynabonne
22 Jun 2014, 07:20
It fixes the problem on a particular page. So you'll have to do it for each page that doesn't use the built-in links mechanism but rather just uses inline links.

SuperGuy
22 Jun 2014, 17:04
jaynabonne wrote:It fixes the problem on a particular page. So you'll have to do it for each page that doesn't use the built-in links mechanism but rather just uses inline links.


Thanks guys :D the problem is fixed!