Larian Banner
Previous Thread
Next Thread
Print Thread
Joined: Jul 2014
M
Marther Offline OP
stranger
OP Offline
stranger
M
Joined: Jul 2014
Hello!

I'm trying to disable dialog interaction with a NPC during some "flee" state by using SetHasDialog(_NPC, 0), but it seems that it has no effect. I know that DB_Dialogs is using that API Call as well - enabling/disabling it inside it's procedures, however I can't find anything about resetting my value in the logs, so I assume that it is not the case. I have looked into the DOS scripts as well and it seems that SetHasDialog is used there as well to achieve same result and (I guess) it works there.

Last edited by Marther; 20/05/19 09:37 AM.
Joined: Jul 2014
M
Marther Offline OP
stranger
OP Offline
stranger
M
Joined: Jul 2014
I have found my mistake. For those who will encounter this problem in the future: SetHasDialog only works with dialogs setted through DB_Dialogs, and not trough "Default Dialog" character parameter. From what I've seen so far, it seems that you should avoid using "Default Dialog" completely.

Joined: Sep 2017
Moderator
Online Happy
Moderator
Joined: Sep 2017
Yes, if you want to interact with a character's dialogue in any way beyond a once set-and-done then that is indeed best smile That way you can remove and change their dialogue entirely at a later time.


Moderated by  Larian_Koala 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5