OnItemFound
On this page
Earlier edition reference / Current 0.86.4.0 property paths > p. 350
func on_item_found(event: Dictionary = {}) -> void:
Log(ToJSON(event))The active-inventory add route adds an item that was previously absent from that bag.
| Common context | Use and limits |
|---|---|
| characterId, itemId, amount | It is based on previous possession, not a permanent lifetime discovery log. Remove the last copy and acquire it again, and this route can report it again. Not every NPC/character transfer route emits this event; use a story flag for one-time discoveries. |
OnVideoEnd#
func on_video_end(event: Dictionary = {}) -> void:
Log(ToJSON(event))The runtime receives the video-finished callback.
| Common context | Use and limits |
|---|---|
| videoAssetId | Filter the asset ID. Do not assume an explicit Stop Video or an interrupted/looping clip has the same natural-end behavior. Dedicated On Video End graph nodes are an additional entry route; avoid duplicating the same reward in both routes. |
OnMusicEnd#
func on_music_end(event: Dictionary = {}) -> void:
Log(ToJSON(event))The music-finished callback reaches the runtime.
| Common context | Use and limits |
|---|---|
| musicAssetId | Use a non-looping track when testing. Stopping or replacing a track is not the same as natural completion. Dedicated On Music End graph nodes can also listen for a selected asset. |
