I'm using sugarcane with a stylesheet that gives me a centre story and a stats/inventory box on the left.
In the stats/inventory box you can click on an inventory item and it will display a description and if you're in the right location it will use the item to solve a puzzle. TheMadExile gave me a hand setting up the stylesheet/script and it works great apart from one thing.
In the inventory item description passage I use [[Return|previous()]] to send the user back from the item description to the main story- I do this because they can obviously click on an inventory item at anytime.
The problem I've now discovered is if they click on an inventory item and get the description but then click on another inventory item they get that description but now I've created a circular previous() of inventory items and the player cannot get back to the game.
Any ideas on how I can solve this problem?
I don't have any scripting skills and trying to figure out how to do this logically is taxing my feeble brain, so appreciate any ideas