I have an object that when picked up by the player it should activate a trigger for the NPC to begin speaking, i have attached the Narrative design trigger script, do i need to select a funtion to make it work?
Hi, by looking at that it looks like there isn’t an actual function/method specified in the On Trigger Event at the bottom of the image? Where it says “No Function” I think there should be a method or function that is in your script.
yes i think so aswell but i dont know which function it should be
Hi Rob, without being able to see the functions in your script I can’t really say what should be there.
What do you want to happen when the Narrative Design trigger is invoked? This should be the function that should be specified there.
Hello @robrobbo151,
Welcome to the Convai Developer Forum!
Here’s a clearer explanation of how to get your object to activate a Narrative Design Trigger when picked up:
The NarrativeDesignTrigger script is designed to work with collider events. Specifically, it triggers when the player enters a collider marked as a trigger. However, based on your setup, it sounds like you’re not using a trigger collider for activation.
Instead of modifying the Convai scripts directly (which we don’t recommend), you can create a small custom script to trigger the narrative sequence programmatically:
- In the Unity Editor, go to your NarrativeDesignTrigger GameObject and click the Update Triggers button.
- Choose the desired trigger you want to activate.
- Create a new C# script and attach it to the same GameObject.
- For example, In your script’s
Awake()method, add the following:
void Awake()
{
GetComponent<NarrativeDesignTrigger>().InvokeSelectedTrigger();
}
This will manually invoke the selected Narrative Design trigger when the object is initialized.
Also, if you’re not using the trigger collider anymore, be sure to disable it to avoid accidental triggering when the player walks through the object. This should help avoid any unexpected behavior or bugs. ![]()
Let me know if you need a code snippet or further help!
Any ideas? i feel like ive tried every function?
Could you please share a video? (make sure console logs are visible)
Could you please share all the logs?
how do i do that sorry
You can access the Editor logs from the console window. To do this, open a Console Window (main menu: Window > General > Console) and select Open Editor Log from the Console window menu.
File size is too big to share
Clean everything up, test the scene and then share the logs.
Editor.log (4.6 MB)
Thank you. Which trigger doesn’t work?







