Hello.
Is it possible to execute a function when an NPC says a specific keyword?
I know that it’s possible to execute a function at each narrative section, but since the narrative sections tend to last longer than expected, I want to trigger specific functions when certain keywords are spoken. In other words, it’s for faster state transitions based on keywords.
You can try using the Action feature for this. Alternatively, you can manually create a script that listens to the incoming text responses and checks for specific keywords.
If the keyword is detected, you can trigger a custom function accordingly.