I have recently begun working on a small story for a writing test, demonstrating branching dialogue systems and consequences. I've recently run into a problem. I have one question 'hub' where the player can explore different options, being returned to the hub at the end of each option. I want to be able to lock the player out from repeating options and have managed to make some progress with 'visited' and ensuring that I can toggle between the active links and deactivated links when I want.
However when I test it, and follow an option back to the hub, I find that the other links are left grey and inactive regardless of if they've been visited or not. I'm a bit stumped and very new to this so please let me know if I've made any glaring errors:
<<if visited (Passage One)>><strike>Passage One</strike>
<<else>><<choice [[Passage One]]>><<endif>>
<<if visited (Passage Two)>><strike>Passage Two</strike>
<<else>><<choice [[Passage Two]]>><<endif>>
I've changed the passage names for readability, but this is the general setup I am using. I'm working with Sugarcube 2.
My apologies if I haven't explained myself well! I need to brush up on the vocabulary to make more sense of my problem.