Reply by k3kalinix | 2024-09-01 00:33:26
Please follow these steps.
Reply by k3kalinix | 2024-09-01 00:33:26
Please follow these steps.
Reply by petroslouca | 2024-09-01 22:25:51
I attached the “NarrativeDesignTrigger” on each avatar and created a new game object. Then attached a script with the following function, thus when calling a public function passing to it the required parameters, i.e. I select the AVATAR index number from an array, set it as active and then select the required trigger index again from the hard-coded narrative designer trigger index, I have achieved a simple and efficient opearion as desired:
public void AvatarNarrativeTrigger(ConvaiNPC NPCs, int TriggerIndex)
{
if (NPCs.TryGetComponent(out NarrativeDesignTrigger narrativeDesignTrigger))
{ConvaiNPCManager.Instance.SetActiveConvaiNPC(NPCs);
NPCs.isCharacterActive= true;
narrativeDesignTrigger.selectedTriggerIndex = TriggerIndex;
narrativeDesignTrigger.InvokeSelectedTrigger();
}
}
Reply by k3kalinix | 2024-09-01 22:27:48
Yes, it works.
Reply by petroslouca | 2024-09-01 22:29:18
Public function sample:
public void Medieval_Outlander_PumpkinTrigger()
{
AvatarNarrativeTrigger(NPCs[0], 1);
}
Reply by petroslouca | 2024-09-01 22:33:52
In a strange way, the NPC talks but the text does not always appear on the chatbox! Is there something that should be enabled/triggered to ensure that the NPC’s text appears in the chatbox?
Reply by petroslouca | 2024-09-01 22:34:35
This happens only when performing a narrative trigger. Using the Mic there is no issue.
Reply by k3kalinix | 2024-09-01 22:35:22
Probably a bug fixed in the new version.
Reply by k3kalinix | 2024-09-01 22:36:40
Reply by petroslouca | 2024-09-01 22:36:41
I undestand, what is the way to upgrade without the risk of losing any of my game functionalities?
Reply by k3kalinix | 2024-09-01 22:36:55
Try this
Reply by petroslouca | 2024-09-01 22:42:04
Yes, it worked! Thank you very much for your support and immediate response!
Replying to petroslouca’s Message
Reply by petroslouca | 2024-09-01 22:42:04
Yes, it worked! Thank you very much for your support and immediate response!
Reply by k3kalinix | 2024-09-02 09:55:41
You are Welcome! <@606256062613684224>
If you have any other questions, please do not hesitate to ask.
We would be very grateful if you could leave a comment on our store pages with your company name or the name of your project. We value your feedback and comments as they help us improve our services and products.
Asset Store: NPC AI Engine - Dialog, actions, voice and lipsync - Convai | Behavior AI | Unity Asset Store
Embedded Content:
NPC AI Engine - Dialog, actions, voice and lipsync - Convai | Behav…
Get the NPC AI Engine - Dialog, actions, voice and lipsync - Convai package from Convai and speed up your game development process. Find this & other Behavior AI options on the Unity Asset Store.
Link: NPC AI Engine - Dialog, actions, voice and lipsync - Convai | Behavior AI | Unity Asset Store
This conversation happened on the Convai Discord Server, so this post will be closed.