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?