Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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

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.

Comments

Sign In or Register to comment.