Page Links Not Showing During Gameplay

chellkafka
So, I'm trying out a game book for the first time and I encountered a Problem.
So, my idea was to make a game where you would have at least two choices on a page and that those choices also branch off in 50/50 Responses.

For example, you read "Was I dead?" and the Options are "yes" and "no". now if you choose "yes" there is a 50% Chance that it says "But how?" and a 50% Chance that it says "Wait, that can't be right."
And so and on with every choice.

Now I did that in this way:

You make your first choice and you get moved to the according page. And there I run an if-script

if (RandomChance(50)) {
msg ("I did, didn't I? I had the gun. And there was a man. Did I shoot?")
AddPageLink (yes gun, shoot yes, "yes")
AddPageLink (yes gun, shoot no, "no")
}
else {
msg ("No. No, I didn't. There was no gun. There was a birthday.")
AddPageLink (yes gun, your birthday, "your birthday?")
AddPageLink (yes gun, whose birthday, "whose birthday?")
}


The Problem is when you Play the game the Options are not showing.
am I doing something wrong or do I just have to put the if script where the Player is moving and the text on different pages?

jaynabonne
Be sure your page type is set to "script + text". Otherwise, if it's just "script", then the default action of dumping out the links won't happen. (And if it's set to "text", it won't run your script at all!)

It does mean you don't need the separate "msg". You can just put that text in the normal description.

chellkafka
Thank, god, Jay. Thanks a lot, I was worried the whole day it wouldn't work, but now it will. I'm so excited. Thank you.

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

Support

Forums