Restart Conversation?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Littlenorwegians
Posts: 37
Joined: Sun Aug 04, 2024 3:06 pm

Restart Conversation?

Post by Littlenorwegians »

Hello!

I am doing a thing where you approach an NPC. Talk to them. Then are able to talk to them. Problem is, it only works once.

I read this thread;
https://www.pixelcrushers.com/phpbb/vie ... php?t=4853

Where it says to link to the first node, I do so but it seems to get stuck all the same.

Video:
https://www.dropbox.com/scl/fi/gbxa730x ... fjzk&raw=1

Is the conversation not being ended in spite of hitting the end node? :?
User avatar
Tony Li
Posts: 23254
Joined: Thu Jul 18, 2013 1:27 pm

Re: Restart Conversation?

Post by Tony Li »

Hi,

What's the Sequence on that last, empty node?
User avatar
Littlenorwegians
Posts: 37
Joined: Sun Aug 04, 2024 3:06 pm

Re: Restart Conversation?

Post by Littlenorwegians »

It was ResumePlaying();

a function I had made that just re-enables the character controller.
Single line of code; GetComponent<ActionCharacterSystem>().enabled = true;


But even if I make that empty, the problem is still there. Doesn't seem to reset.
Should there be something else in that final node?
User avatar
Tony Li
Posts: 23254
Joined: Thu Jul 18, 2013 1:27 pm

Re: Restart Conversation?

Post by Tony Li »

Do you require the player to click a continue button to advance the conversation? If so, try setting the Sequence field to:

Code: Select all

required ResumePlaying();
Continue()
Or, if you don't want to resume playing when you loop the conversation back to the beginning, just use:

Code: Select all

Continue()
and set up a Dialogue System Events component to disable and re-enable your ActionCharacterSystem as described at 07:00 of the Interaction Tutorial.
Post Reply