Jump to content
Kish

[Solved] Bypassing automatic dialogue initiation

Recommended Posts

Is there a way to have someone leave the party, remain in the area, but notimmediately initiate dialogue with the PC?

Edited by Kish

Share this post


Link to post

Look at the default script (dplayer2.bcs) for the stock NPCs. There is a block that handles switching the script and initiating dialog with the PC. Should be something like this (google search result - BG & BG2 are not currently installed)

IF
 !InParty(Myself)
 HPGT(Myself,0)
THEN
 RESPONSE #100
   SetLeavePartyDialogueFile()
   Dialog(Player1)
   ChangeAIScript("",DEFAULT)
END

 

You'd probably want to change that block to not run the dialog command. However, all joinable NPCs use this script so you'd be better off saving the changed version as something else. Be sure to check any dialog blocks that handle joining, those same blocks might set the dplayer2 script. If they do, they would need to be adjusted to use your modified file.

 

NOTE: this is just a wild hair brained guess. :p

Share this post


Link to post

So...I can just put

SetLeavePartyDialogueFile()

ChangeAIScript("",DEFAULT)

in the block where the character leaves the party...and that fixes it. Thanks, I didn't know about the dplayer script.

Edited by Kish

Share this post


Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...