How do I get a "message" when the line is dismissed?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

How do I get a "message" when the line is dismissed?

Post by fkkcloud »

Hello,

How do I get a "message" when the line is dismissed?

I am currently using Typed "message" which send "message" when the typing is done.

Code: Select all

StartTalkAnimation();
required StopTalkAnimation()@Message(Typed);
However, this was not working 100% as I desired.
I am trying to rather have the character talk until player goes to the next line.
Ideally, something like below is what I am looking for:
(Getting a "message" when the line is done and right before it goes to the next line)

Code: Select all

StartTalkAnimation();
required StopTalkAnimation()@Message(LineFinished);
p.s. I was only able to find Built In message "Typed" so far.
https://www.pixelcrushers.com/dialogue_ ... ndMessages
User avatar
Tony Li
Posts: 21965
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I get a "message" when the line is dismissed?

Post by Tony Li »

Hi,

I think "Typed" is the only built-in message, unless I'm forgetting one.

If you use continue buttons to advance the conversation, the second sequence you proposed will work:

Code: Select all

StartTalkAnimation();
required StopTalkAnimation()@Message(LineFinished);
This is because nothing will ever send "LineFinished". However, since StopTalkAnimation() is required, it will run when the player clicks the continue button.
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

Re: How do I get a "message" when the line is dismissed?

Post by fkkcloud »

Works pretty great!!!
Post Reply