Page 1 of 1

How to trigger dialogue when X happens?

Posted: Wed Apr 17, 2024 4:42 pm
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.

Re: How to trigger dialogue when X happens?

Posted: Wed Apr 17, 2024 5:06 pm
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.