Skip to reading
Action Lists & Events

OnCustomEvent

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
On this page

GDScript handler: on_custom_event(event: Dictionary = {})

A script or Emit Event graph node explicitly emits this event name.

Source table from OnCustomEvent, page 47
Standard contextPractical use / limits
Whatever keys the emitter sends; eventName is added for the listenerUse a reason key, such as signal_powered, to distinguish several messages sharing OnCustomEvent. It is not automatically emitted by every button or variable edit. The graph form uses its Context JSON; the GDScript helper merges its current caller context before emitting.

OnGlobalReady#

GDScript handler: on_global_ready(event: Dictionary = {})

A persistent/global script is initialized through its language runtime's ready route.

Source table from OnCustomEvent, page 47
Standard contextPractical use / limits
Language-specific startup context; native GDScript includes eventName and scriptIdUse it to initialize that global instance, not to assume a playable room is ready. The GDScript runtime calls a global script's matching method directly. The visual On Event picker does not offer this ready event; do not design it as a universal room-ready graph broadcast.

OnInteraction#

GDScript handler: on_interaction(event: Dictionary = {})

A scene-entity verb interaction reaches its execution point.

Source table from OnCustomEvent, page 47
Standard contextPractical use / limits
entityId, targetEntityId, targetKind, sceneId, playerId, characterId, verb, inventoryItemId, sourceItemId; regionId for a regionThis is the shared notification before the local verb action list. Filter both target and verb. The local list receives a related but smaller context; do not assume every key shown here is passed unchanged to every nested call.
Page 47 of 189Permalink
Go to page