Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Is it possible to hide or display a link only when the user is on a certain passage.

$
0
0
In my sidebar I have links to certain passages like "Inventory" and "Stats" and when the user clicks on them they have to then click the <<back>> button to get to where they were before. The problem is if they click inventory and then click stats then the back button won't go back to the game but instead to the previous passage which was the inventory.

To fix this I want to hide the links to other pages when the user opens one of the sidebar links. I think I could do this using variables but that would be really messy and I'd rather not do it that way. The sort of code I was thinking would work is something like:
<<if not passage == Stats>>[[Inventory]]<</if>>

I know this code doesn't work but I was thinking something similar to it might.

Viewing all articles
Browse latest Browse all 1844

Trending Articles