Making an inventory page in Twine

Quick tutorial for writers of interactive fiction explaining how to write an inventory page using the Twine game engine. I’m using Harlowe in this video. Collecting items is a common game mechanic in so many game types. Here are the bits of code you’ll want to make this happen. Code 1 on intro screen: (set: $HasLamp to false) Code 2 on screen where you collect lamp: (set:$HasLamp to true) Code 3 on inventory screen: (if:$HasLamp is true)[A lamp, glowing with a warm heat.] Happy writing! Play “You Feel Like You’ve Read This In a Book“:
Back to Top