OnDialogueStarted
On this page
Earlier edition reference / Current 0.86.4.0 property paths > p. 350
func on_dialogue_started(event: Dictionary = {}) -> void:
Log(ToJSON(event))A valid dialogue session begins, before its graph is processed.
| Common context | Use and limits |
|---|---|
| dialogueId, playerId; inherited caller context may also be present | Filter dialogueId before adjusting a conversation camera or HUD. Starting the same dialogue from this handler can recurse. Keep listener work short when it must complete before the first line appears. |
OnDialogueEnded#
func on_dialogue_ended(event: Dictionary = {}) -> void:
Log(ToJSON(event))A dialogue session ends, including interrupted endings.
| Common context | Use and limits |
|---|---|
| dialogueId, playerId, interrupted; inherited caller context may also be present | Check 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#
func on_inventory_changed(event: Dictionary = {}) -> void:
Log(ToJSON(event))An inventory mutation route reports an add, remove or quantity change.
| Common context | Use and limits |
|---|---|
| characterId, itemId, amount, operation | Use 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. |
