13. Entry and exit belong to the room
Select the scene record itself to edit Room Events. Selecting the floor or a wall opens that object's events instead. The room provides four local lists.
| Visible label | Stored key | When it runs |
|---|---|---|
| When Enters Room | enter | Every normal room entry. |
| When Enters Room First Time | firstEnter | The first visit remembered in the current saved game state. |
| When Exits Room | leave | A normal player Change Scene departure. |
| When Exits Room First Time | firstLeave | The first such departure remembered in the current saved game state. |
Figure 11. Room Events uses the same ordered native action fields as object responses.
For this room, use firstEnter to set the initial objective text, and enter to add 1 to visits. First-time is per saved game, not once per installation. A new game starts with fresh visit history; loading restores saved history.
Do not put Create Variable or Set Variable resets in enter unless you really want them on every return. The player should not lose a completed puzzle just by walking out and back.
