Skip to reading
Visual Scripting in Depth

Appendix E. Event context quick reference

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 PDF page
Source table from Appendix E. Event context quick reference, page 78
EventUseful context / caution
OnGameStartsceneId, playerId; no object caller is implied.
OnSceneLoadedsceneId, previousSceneId, playerId, firstVisit.
OnSceneLeavingsceneId and nextSceneId.
OnPlayerChanged / OnCharacterControlplayerId and displayName; control event has its own caller handling.
OnInteractionentityId, verb, sceneId and inventory/source fields as applicable.
OnTriggerEntered / OnTriggerExitedtriggerId, entityId, sceneId, playerId; regions can add regionId.
OnInventoryChangedcharacterId, itemId, amount and operation.
OnItemFoundcharacterId, itemId, amount when first acquired in that inventory context.
OnDialogueStarted / OnDialogueEndeddialogueId plus the preserved context.
OnCustomEventThe explicit JSON context supplied by the sender.
GUI element eventguiId, guiElementId, eventName and guiEvent.
Media-end entryvideoAssetId 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.

Page 78 of 93Permalink
Go to page