Convai Actions not calling for certain functions

Original Discord Post by rookie910 | 2024-09-19 09:12:58

Hi! So i have 2 defined actions for follow and stop following in NPC actions (see picture 1).
The follow function works fine and when i run the command to the bot to follow me, it follows me as intended. no problem there. Now the issue is when i stop and tell the bot to “Stop Following” me, the stopfollow() function never gets called, and even the debug in the switch case statement “stop follow run” doesn’t get called, even though I’m sure i have everything set up properly in inspector and code. (picture 2 and 3).

Any leads for why this isn’t working would be appreciated, thank you.

Images:



Reply by k3kalinix | 2024-09-20 09:03:29

Hello <@1148967464672165888>,

Reply by k3kalinix | 2024-09-20 09:04:00

Can you please share the Action logs when you try it?

Make sure you have enabled Action Logs in the Convai Logger Settings.

Reply by rookie910 | 2024-09-20 13:58:06

Hi <@1023671043287699568> , sure!
i attached 2 images, one is when follow function is run, one when stop follow is run. stop follow seems to be stuck on processing

Images:


Reply by k3kalinix | 2024-09-22 21:39:32

<@433610960725344267>

Reply by starboy_24 | 2024-09-27 14:01:41

Hey <@1148967464672165888> can you provide the whole script for action handling, in which you implement the switch statement. Also, the stop Follow function is never getting called, so it’s probably an issue in implementation. I will take a look into it once you send that

This conversation happened on the Convai Discord Server, so this post will be closed.