Divinity Banner
Previous Thread
Next Thread
Print Thread
How SetHasDialog should be used? #652627
20/05/19 02:20 AM
20/05/19 02:20 AM
Joined: Jul 2014
Posts: 5
M
Marther Offline OP
stranger
Marther  Offline OP
stranger
M

Joined: Jul 2014
Posts: 5
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.
Re: How SetHasDialog should be used? [Re: Marther] #652629
20/05/19 12:20 PM
20/05/19 12:20 PM
Joined: Jul 2014
Posts: 5
M
Marther Offline OP
stranger
Marther  Offline OP
stranger
M

Joined: Jul 2014
Posts: 5
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.

Re: How SetHasDialog should be used? [Re: Marther] #652659
28/05/19 11:15 AM
28/05/19 11:15 AM
Joined: Sep 2017
Posts: 450
Norway
The Composer Online happy
addict
The Composer  Online Happy
addict

Joined: Sep 2017
Posts: 450
Norway
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  Dom_Larian, Larian_Koala 

Powered by UBB.threads™ PHP Forum Software 7.6.2