How to print the prompt I am giving to NPC in the unity console?

Original Discord Post by kagura4549 | 2024-09-14 15:44:46

Basically what i said

Reply by k3kalinix | 2024-09-14 16:12:11

What exactly do you mean?

Reply by k3kalinix | 2024-09-14 16:12:18

Could you please share an example?

Reply by kagura4549 | 2024-09-14 16:20:41

I imported the NPC in unity and now when i run the game and then face the NPC i am showed a dialogue box through which i can communicate with the NPC or i can press T and then say what i want to say to the NPC.

I just want this prompt (whatever i am saying to the NPC) to br printed in the unity console.
How???

Reply by k3kalinix | 2024-09-14 16:23:50

Open ConvaiChatUIHandler.cs script.

Images:

Reply by k3kalinix | 2024-09-14 16:23:57

You can use the SendPlayerText Method

Reply by kagura4549 | 2024-09-14 16:41:11

I dont understand how do i use this

Reply by k3kalinix | 2024-09-14 16:41:32

Just use the text parameter

Reply by kagura4549 | 2024-09-14 16:41:34

I did find the code though

Images:

Reply by k3kalinix | 2024-09-14 16:41:47

Debug.Log(“text”);

Reply by kagura4549 | 2024-09-14 16:42:08

oh oh oh

Reply by kagura4549 | 2024-09-14 16:43:03

i understand.
Should i alter this code to

public void SendPlayerText(string text)
        {
              Debug.Log("text");
            _currentUIImplementation?.SendPlayerText(playerName, text, playerTextColor);
        }

Reply by k3kalinix | 2024-09-14 16:44:28

Yes

Reply by kagura4549 | 2024-09-14 21:52:47

<@1023671043287699568> please mark this as completed

Reply by k3kalinix | 2024-09-14 21:53:30

<@689150981748949061>
If you have any other questions, please do not hesitate to ask.

We would be very grateful if you could leave a comment on our store pages with your company name or the name of your project. We value your feedback and comments as they help us improve our services and products.
Asset Store: NPC AI Engine - Dialog, actions, voice and lipsync - Convai | Behavior AI | Unity Asset Store

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

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-09-14 21:53:30
<@689150981748949061>
If you have any other questions, please do not hesitate to ask.

We would be very grateful if you could leave a comment on our store pages with your company name or the name of your project. We value your feedback and comments as they help us improve our services and products.
Asset Store: NPC AI Engine - Dialog, actions, voice and lipsync - Convai | Behavior AI | Unity Asset Store

Reply by kagura4549 | 2024-09-14 21:55:52

Already gave a review :heart:
Also pls help in this other similar question as well. Discord

Reply by k3kalinix | 2024-09-14 21:56:27

What is your username?

Reply by kagura4549 | 2024-09-14 21:59:49

Kagura-Ahad

Replying to kagura4549’s Message

Reply by kagura4549 | 2024-09-14 21:59:49
Kagura-Ahad

Reply by k3kalinix | 2024-09-14 22:02:04

Are you mahoeraga?

Reply by kagura4549 | 2024-09-14 22:06:52

Oh u mean in the unity store?
Yes that is me,
Mahoeraga
I left the review when raghuvansh helped me