Original Discord Post by golden_possum_87097 | 2024-06-28 08:40:17
Hi, How to implement if you need NPC to read a text sent to him? For example, after the player goes online, NPC will tell the player how much money his mine earned for him during the time he was offline.
I find this function: [ public async void TriggerEvent(string triggerName, string triggerMessage = “”) ]. And How to use this triggerMessage in Narrative Design?
Reply by golden_possum_87097 | 2024-06-29 01:48:46
Let me repeat the requirement with an example. I want the NPC to read a piece of news. I use triggerMessage to send the news to the NPC. Then how can the NPC read the news?
Hi <@1122792808181420033> you can modify the InvokeSelectedTrigger like the image provided below, after that as <@1023671043287699568> suggested you can call this function when you want and pass the message