Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Oct 2014
Location: Hogwarts
member
OP Offline
member
Joined: Oct 2014
Location: Hogwarts
In the main campaign, a different dialog appears for the companions if they speak to important NPCs. Usually the NPC says something like "Go away, I want to speak with your master." I'm trying to figure out how to do a similar thing with my companions so they can't break the game. Currently I'm using a script where DialogStartRequested(CHARACTER_NPCmayor, _Player). Yet my companions are still able to speak with these NPCs.

Is it possible to set a different greeting dialog using a CONDITION that checks to see if the character is a main character or just a companion?

Joined: Aug 2014
old hand
Offline
old hand
Joined: Aug 2014
I believe the way they did it was put companions in a database "DB_Companions" and then check to see if the person initiating the dialog is in that database or not. So something like:

INIT

DB_Companion(CHARACTER_Jahan)

KB

IF
DialogStartRequested(CHARACTER_NPCmayor, _Player)
AND
NOT DB_Companion(_Player)
THEN
Initiate dialog (I forget the call)

IF
DialogStartRequested(CHARACTER_NPCmayor, _Player)
AND
DB_Companion(_Player)
THEN
Initiate companion berating dialog.


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