Hi there everyone.
I'm currently writing a game that is using F2Andy's inventory system (here). I'm using Twine 2, Sugarcube 2.21.0.
Basically, what I want to happen is this. When the player opens up the link to an item in their inventory, the item passage will add a variable to the player. Then, certain passages will have additional links available to them if they have that variable.
The player picks up a journal. Inside the journal, it reveals the location to a hidden key. The option to find the key in the proper room is not avaialbe until the player actually looks at the journal in their inventory, not just on picking it up.
Right now, the problem I'm having is the <<back>> and <<return>> macros on the inventory page and the item page.
If I use <<back>> on the item passage, then the variable won't be saved when I go back to the inventory, and thus, the passage they're on.
If I use <<return>> on the item, then the <<back>> on the inventory passage keeps getting stuck in a loop between the inventory and the item.
I hope I'm making sense with this question.