Twine Version: 2
[also choose a Story Format tag above]
I have searched all over the place for the answer and cannot seem to find it. I created a fast travel system. where you click a button on the sidebar and there are buttons for each area. I just want to make the fast travel button on the sidebar to be invisible or at least unable to be used until the player reaches the sandbox portion of the game.
Is it possible to use if-statements in the sidebar passage? If so, it seems you could read the current passage name and hide the button based on that? It might depend on when the sidebar renders.
Are there any automatic system variables? I expect it varies by flavor of Twine. AXMA had system variables which you could use in statements - $$passage was the current passage and $$from was the name of the previous passage the player just saw, which does not sound like much but is shockingly useful for varying text.
<<if $$from eq 'Rocky Cliff'>>
Ouch! That tumble down the cliff hurt a lot!
<<endif>>
You are on the beach near some dangerous cliffs.