Original Discord Post by _drhydra | 2024-09-22 21:54:10
I’m creating a detective game where clues about a crime are distributed to the players and Convai characters. I need these clues to be communicated to the characters so that players can interrogate them and discover which clues they possess.
I was considering using the method _convaiChatUIHandler.SendPlayerText(input); to pass the clues they hold. I also thought about using the ‘Knowledge Bank,’ but since the clues change between playthroughs, this might not be ideal. I believe using the **‘Narrative Design’ **feature wouldn’t work either, for the same reason—the clues vary between sessions.
Additionally, it wouldn’t be ideal for players to see what clues the characters received in the chat history.
Could someone recommend the best way to handle this?
Just a little question: will the characters remember the clue if I do it that way using SendTextDataAsync? And will this communication appear in the character chat?
Thank you for the response!
Is there a way to pass the clue information to the character so that it is remembered during the session, but without showing up in the chat visible to the player?
Since it’s an investigation game, I need the character to keep the clue without the player seeing the direct input in the conversation history.
You need to customize Convai scripts. So in ChatUIHandler you can create a bool called IsClue, set it to true when you send text and it won’t show.
Set it to false when you send a normal message.
Customization is up to you. We cannot provide support on this…
Thank you so much for the guidance!
I appreciate the clarification and the suggestion to customize the Convai scripts.
I understand that the customization is on my side, and I’ll work on implementing the solution.
Your help has been really valuable. Thanks again!
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