Skip to reading
Action Lists & Events

OnDialogueEnded

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_dialogue_ended(event: Dictionary = {})

A dialogue session ends, including interrupted endings.

Source table from OnDialogueEnded, page 46
Standard contextPractical use / limits
dialogueId, playerId, interrupted; inherited caller context may also be presentCheck interrupted before granting a reward that belongs only to successful completion. Some explicit end paths can supply a blank dialogueId, so do not assume every payload identifies a normal completed graph.

OnInventoryChanged#

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

An inventory mutation route reports an add, remove or quantity change.

Source table from OnDialogueEnded, page 46
Standard contextPractical use / limits
characterId, itemId, amount, operationUse operation and the actual bag state together. amount is supplied by that mutation route; it is not guaranteed to be the resulting total. Adding/removing inside this listener can trigger another inventory event, so guard feedback loops.

OnSaveLoaded#

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

A save has successfully restored game state.

Source table from OnDialogueEnded, page 46
Standard contextPractical use / limits
slot, sceneId, playerIdRefresh presentation from restored variables. Do not award a pickup again merely because its saved state was loaded. This is a successful-load hook; a missing or invalid save should not be treated as a completed restore.
Page 46 of 189Permalink
Go to page