I used an initializer method to call a trigger and tried to make the NPC speak first

Reply by hiimabiel | 2024-08-27 18:25:21

How should I proceed?

Reply by 665kkl | 2024-08-27 19:09:26

I am too, but I called him directly, and he didn’t say anything.

Images:

Reply by k3kalinix | 2024-08-27 19:51:15

Hello <@807630326666362931> <@328311427980984322>

Reply by k3kalinix | 2024-08-27 19:51:51

Could you please remove InitializeConversation.cs

Reply by k3kalinix | 2024-08-27 19:53:41

And
Open ConvaiNPC.cs
Add this code at the end of the Start method

if (TryGetComponent(out NarrativeDesignTrigger narrativeDesignTrigger))
  {
    narrativeDesignTrigger.InvokeSelectedTrigger();
  }

You need to get the NarrativeDesignTrigger component and call this method.
It will call the selected trigger (you can select it from the Inspector).

Reply by hiimabiel | 2024-08-27 20:08:15

Hello <@1023671043287699568> thank you for your answer! I have been working with other branches and test different code. When I switched back to the one we left on it was suddenly working! I will definitely try the code you just shared. Thank you!

Reply by 665kkl | 2024-08-28 06:22:00

There were no error messages, but it also didn’t speak until I pressed the speech button. Moreover, it skipped the first section and started directly from the second one.

Attachments:

Reply by k3kalinix | 2024-08-28 06:27:46

<@807630326666362931> probably you changed something.

Reply by 665kkl | 2024-08-28 07:27:22

I restarted a new project and it’s still the same. I only changed the places you mentioned earlier, but unfortunately, it’s still the same.

Reply by 665kkl | 2024-08-28 07:32:11

I found the cause of the problem. I wrote the section in the narrative design using as instructed by the documentation. After removing it, everything works fine. Thank you!

Reply by 665kkl | 2024-08-28 07:39:57

May I ask if these special notations are directly written in the Objective section of the content?

Images:

Replying to 665kkl’s Message

Reply by 665kkl | 2024-08-28 07:39:57
May I ask if these special notations are directly written in the Objective section of the content?

Reply by starboy_24 | 2024-08-28 08:08:48

Yes

This conversation happened on the Convai Discord Server, so this post will be closed.