How to trigger dialogue when X happens?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Mastodon
Posts: 3
Joined: Fri Jan 05, 2024 8:24 pm

How to trigger dialogue when X happens?

Post by Mastodon »

Hello! I am developing turned based combat for my game and am finally getting around to explaining the tutorial through the dialogue system. How would I go about making dialogue pop up when players do something specific.

Like clicking the attack button or when a meter fills up have dialogue pop up that explains how to use it. It could even be timed dialogue like X amount of time into combat it starts to explain if that is easier, but I would prefer the former.
User avatar
Tony Li
Posts: 20657
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to trigger dialogue when X happens?

Post by Tony Li »

Hi,

Since those are gameplay events that happen outside the Dialogue System, when the events happen your code/systems can trigger conversations from outside the Dialogue System using a C# method (DialogueManager.StartConversation()) or by setting up a Dialogue System Trigger component and calling its OnUse() method.
Post Reply