Original Discord Post by ___1576 | 2024-09-14 16:44:52
Hello, I am working on Narrative Design in Convai and trying to implement it in Unity. I want to evoke a trigger that activates when a specific ‘event’ occurs, not just when entering a certain space. However, I can’t figure out how to do this. How can I achieve this? I apologize if my writing is unclear, as I’m not very good at English. Thank you.
Im sure documentation had somthing similar to the three types of triggers it talked about.
But if you arent able to work with that then u can use a similar solution i posted to my problem and u can alter it such that when that certain event occurs, there should be a prompt sent to the NPC and you can alter the narrative design part of the NPC from playground such that when that specific prompt is being recieved by the NPC, it should behave to however you want the NPC tobehave when that event occurs
Reply by kagura4549 | 2024-09-14 16:54:03
Im sure documentation had somthing similar to the three types of triggers it talked about.
But if you arent able to work with that then u can use a similar solution i posted to my problem and u can alter it such that when that certain event occurs, there should be a prompt sent to the NPC and you can alter the narrative design part of the NPC from playground such that when that specific prompt is being recieved by the NPC, it should behave to however you want the NPC tobehave when that event occurs
I tried it as you suggested, but I encountered the following error.
“The type or namespace name ‘NarrativeDesignTrigger’ could not be found (are you missing a using directive or an assembly reference?)”
In fact, I had previously tried the same method because the Convai documentation provided a similar code, but I got the same error back then, which is why I ended up asking for help here How can I resolve this?