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“:
1 view
435
127
2 months ago 00:05:00 1
A CGI 3D Short Film: “NIGHTFALL“ - by The NIGHTFALL Team + ARTFX | TheCGBros