Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#637471 19/11/17 06:19 PM
Joined: Nov 2017
I
apprentice
OP Offline
apprentice
I
Joined: Nov 2017
Is there a guide for this somewhere? I can't find one and I can't get dialog to work with multiple NPCs. The dialog simply ends when I try to introduce the second NPC.

I've tried a few scripting things including trying to add the second NPC to the dialog after DialogStartRequested(), but I'm obviously not doing the right thing because it hasn't worked.

I currently have the NPCs set up as separate speakers because otherwise there was no way to pick which one said what.

[Linked Image]

I messed around with the speaker order a little bit. Moving Lasdyl up to position #2 aborts the conversation even earlier, when the player group gets their first chance to make a dialog decision. Moving the players to position #1 doesn't seem to make a difference.

Joined: Oct 2017
Location: United Kingdom
journeyman
Offline
journeyman
Joined: Oct 2017
Location: United Kingdom
Try adding both NPCs to the dialog with

Code
DB_Dialogs(_NPC1,_NPC2,"DialogName");

or after DialogStartRequested:

Proc_StartDialog(0,"DialogName",_NPC1,_NPC2);


Also I usually put the speakers in the order they speak in the dialog.

Joined: Nov 2017
I
apprentice
OP Offline
apprentice
I
Joined: Nov 2017
Thanks! Using the DB_Dialogs() and messing around with the speaker order (moved players last) got everything working how it should. smile

Joined: Nov 2017
I
apprentice
OP Offline
apprentice
I
Joined: Nov 2017
I created a tutorial for this since one didn't exist already.


Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
Oh cool, you may want to consider adding this to the Guides forum. Thanks, will definitely give it a listen later.


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Sep 2017
Location: Belgium, Ghent
addict
Offline
addict
Joined: Sep 2017
Location: Belgium, Ghent
Nice guide! smile

I'm a bit late to the party, but there's also a dialog in The Sandbox with 2 NPCs.
The scripting for that is in the sandbox goal. It's indeed the 'DB_Dialogs(_NPC1,_NPC2,"DialogName");' INIT line you need for that.

You can find the conversation on the big ship in the middle of the map.
[Linked Image]

Last edited by Larian_KVN; 24/11/17 10:44 AM.

CTRL+K the elf

Moderated by  Larian_KVN 

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