Hi, I'm trying to get it so a link will only show up if a certain passage has been comlpete.
I've looked all over and only find stuff from 1.4 which is frustrating cause to me its changed a bit since then, i'm using snowman because i want more customization for my story. Currently got background buttons and stuff sorted but i cannot get a link that is only there if a certain passage has been hit.
To clarify a bit more
I'm trying to get passage 3 to display a link only if passage 2 is selected.
Start
Passage 1 Passage 2
Passage3
Thanks if anyone understands, i'm kind of new to HTML scripting, getting good so far though.
Comments
Using a variable:
You'd simply add something like the following to Passage 2: And then in Passage 3:
Checking the state history:
First. Put the following code in your Story JavaScript: And then in Passage 3:
Using a variable has helped a lot.
My problem now however is the way i have set it to go back to the start of the story, the second link on passage 3 has stayed even though this time i went through passage 1 but used a link back to start as it is a loss for the reader.
I know the reasoning is because it is still the same story and the code hasn't refreshed.
Now would i have to make a new way to get back to the beginning of the story or when the start passage is visited it would reset all code.
Thanks again.
Using the code I gave, or something similar, is the correct way to completely restart a story.