So I started working on a VisualNovel because of a school project these days.
So far I had no real problems, but now there's a thing of which I can't find a suitable explanation for and I tried already to figure it out myself.
The user has to find a way into a castle. The user is asked wether he wants to go to the front gate where guards are standing or if he wants to search for another entrance.
Let's assume he decides to walk to the gate, where the user is asked, wether he wants to talk to the guards or if he wants to knock them out.
IF he chooses to talk to them, the guards will not open the gate and another menu appears.
Knock the guards out or find another entrance.
When the user decides to find another entrance he gets the menu to try to sneak inside or to knock the guard out and then go into the dungeon.
The user decides to sneak into the castle.
And what I want to do is, that the game jumps to a different label, when the user has talked before to the guards of the castle. If he decides in the beginning to find another entrance and then wants to sneak in, it jumps to label a, if he talked to the guards it jumps to label b. although you made the same choice in the last menu.
I hope you get what I mean.
Two ways in one choice, based on what happened before. I tried doing it myself, but it isn't working, and I don't know why.
So, this is the menu where I defined the if thing. The Novel's Language is German, so you might understand not a single word of the content, but I think, that is not important at all.
menu:
"Die Wachen beseitigen":
s "Euer schlimmster Alptraum!"
jump k_o
"Reden":
$ gift = "reden_mit_wache"
"Vielleicht sollte ich erst einmal mit Reden mein Glück versuchen."
jump wachen_reden
I already tried lots of ways to combine this command and stuff and I'm pretty damn sure I made no other mistake, it has to be the gift thing...menu:
"Vorbeischleichen":
"Also versuchte ich mich an der wache vorbeizuschleichen."
if gift == "reden_mit_wache"
jump erwischt
jump hof_des_schlosses
"Wache ausschalten":
"Man konnte ja nie wissen, besser ich schaltete diese Wache aus."
jump hof_des_schlosses

