Appendix E. Event context quick reference
| Event | Useful context / caution |
|---|---|
| OnGameStart | sceneId, playerId; no object caller is implied. |
| OnSceneLoaded | sceneId, previousSceneId, playerId, firstVisit. |
| OnSceneLeaving | sceneId and nextSceneId. |
| OnPlayerChanged / OnCharacterControl | playerId and displayName; control event has its own caller handling. |
| OnInteraction | entityId, verb, sceneId and inventory/source fields as applicable. |
| OnTriggerEntered / OnTriggerExited | triggerId, entityId, sceneId, playerId; regions can add regionId. |
| OnInventoryChanged | characterId, itemId, amount and operation. |
| OnItemFound | characterId, itemId, amount when first acquired in that inventory context. |
| OnDialogueStarted / OnDialogueEnded | dialogueId plus the preserved context. |
| OnCustomEvent | The explicit JSON context supplied by the sender. |
| GUI element event | guiId, guiElementId, eventName and guiEvent. |
| Media-end entry | videoAssetId or musicAssetId. |
Available fields come from the event source. A missing field reads as null. The stored caller is captured from the context and can differ from a later action target. Do not assume itemId and this always identify the same record.
Filter a listener before changing state. Never make inventory changes from every inventory notification, or re-emit the same custom tag unconditionally from its own listener.
