Load character: if inventory includes item with “light:true” then show “#light” else show “#dark”
Load adventure: if open-the-door.challenge is “kickdown” then show “#light” else show “#dark”
light
desc: the room has a small treasure chest in one corner
challenge -> open chest. on screen. -> load page: poison trap
challenge -> inspect chest. on screen -> success: find poison trap. fail: poison trap.
dark
desc: it is dark in this room. you should probably get a light.
challenge->move out of the doorway -> load element: light
challenge->go get a torch->load element: light. add inventory: torch