Skip to reading
Action Lists & Events

13. Entry and exit belong to the room

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations

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.

Source table from 13. Entry and exit belong to the room, page 17
Visible labelStored keyWhen it runs
When Enters RoomenterEvery normal room entry.
When Enters Room First TimefirstEnterThe first visit remembered in the current saved game state.
When Exits RoomleaveA normal player Change Scene departure.
When Exits Room First TimefirstLeaveThe 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.

Page 17 of 189Permalink
Go to page