Hello! I'm looking for help with creating a passage that remains concealed on the page until a number of a different routes are completed. A player would go through the game and get to a few dead ends and return to the hub area. After they reach all the dead ends, a new option appears below the current ones that can be clicked only if they have triggered the end of all three other paths.
Any tips?
Comments
Basically you can either:
a. Use variables to track when the Reader reaches the end of each route and check the current value of those variables in your Hub area to determine if you should show the "hidden" passage.
b. Check the Reader's Passage History to see if they have visited the end Passage of each route.
The Passage History is a list of the names of every Passage the Reader navigated to, in the order they visited the passages so a passage name may appear more than once in the list.
Checking the current value of a variable is very fast, checking the Passage History for a passage name is a little slower because the more passages a Reader has visited the longer the list becomes and every name in the list is checked which takes a little longer every time the list gets bigger.
How you implement the code for each of the above options depends on which story format you are using.