Editor Reference
Write your own mystery for Whispers in the West
Triggering a dialogue
Triggering a dialogue
In order for a player to interact with an NPC or item in the game, that object must be have a trigger node.
To set up a trigger, you’ll need to specify two things at the beginning of a dialogue node:
trigger: Defines how the interaction is activated (e.g., click)
target: The name (ID) of the NPC or item the player will interact with
In this example, when the player clicks on the bartender in the scene, the bartender_intro dialogue node will be triggered and its contents will play out.
This is the most common method for starting interactions in a scene.