tags
field.conversationStartNode
values in the Inspector to match what they are called in the Yarn script.OnMouseDown()
function that exists for every GameObject (which this class inherits from). Checking the IsDialogueRunning
property of the DialogueRunner is a simple way to ignore interaction whenever starting dialogue would interrupt an existing conversation.StartConversation
that can then be reversed once dialogue has ended.EndConversation()
until later.onDialogueComplete
event happens whenever the runner reaches the end of its current conversation path.EndConversation()
function be called.OnMouseDown()
function checks when deciding whether to start a conversation. Turning this into a command simple requires adding the Yarn Command decorator above the function, with the string that will become the command keyword in any yarn scripts.disable
once for each character when the story ends, to save the player from going back and having a confusion conversation about an already-solved mystery.lightIndicatorObject
in YarnInteractable.cs, so a snippet of code in each of theStartConversation()
and EndConversation()
functions can quickly turn it on and off for the relevant character.