Android

Original Discord Post by shahab786 | 2024-08-19 12:28:48

Need Help here, i want NPC to talk first how can i do that like welcome or introduction, also i want my custom defined introduction text AI should speak and show on UI text area… UI dont show text or transcript unless user start first in UI BOX.

Reply by k3kalinix | 2024-08-19 20:29:28

Hello <@899513707774750801>,

Reply by k3kalinix | 2024-08-19 20:29:36

You can use our Narrative Design Feature.

Reply by k3kalinix | 2024-08-19 20:30:57

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

Just an example code.

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

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