This is a story file with some advanced functions I didn’t show in class (choices, actions, display, html, css).
Additional macros for advanced interactions or effects
If you are making a parser-based story you can try Inform 7 way more complex to use for both the writer and the reader. It’s a whole different way to conceive programming. Here is a snipped of “source code”:
An electric light is a kind of device. Carry out switching on an electric light: now the noun is lit. Carry out switching off an electric light: now the noun is unlit. Carry out someone trying switching on an electric light: now the noun is lit. Carry out someone trying switching off an electric light: now the noun is unlit.
The lamp is a fixed in place electric light. It is switched off. Understand "light" as the lamp. The description of the lamp is "Exceptionally bright, to help you pick out any features you might need to observe"