Page 1 of 1

Restart Conversation?

Posted: Thu Jun 05, 2025 9:34 am
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? :?

Re: Restart Conversation?

Posted: Thu Jun 05, 2025 12:14 pm
by Tony Li
Hi,

What's the Sequence on that last, empty node?

Re: Restart Conversation?

Posted: Thu Jun 05, 2025 12:56 pm
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?

Re: Restart Conversation?

Posted: Thu Jun 05, 2025 2:46 pm
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.