Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Nov 2017
J
stranger
OP Offline
stranger
J
Joined: Nov 2017
I am having an issue with a scripted event. There is a dialog interaction between two characters, after which combat begins.

For some reason, one of the dialog characters will flee and cower when the fight starts. Her alignment matches that of her party and they are all in a combat group, yet, the other npc's join combat and she flees.

I have turned off cower, flee, etc in the generic character script, but then she just stands there and doesnt join combat.

Any suggestions?

Joined: Nov 2017
J
stranger
OP Offline
stranger
J
Joined: Nov 2017
Fixed the issue, or at least found a good workaround:

I created a copy of the character which was set off-stage in the INIT section:

SetOnStage(CHARACTERGUID_UndeadTeresa_001_a2286b44-f384-423c-88d4-2a5fc6c217e6,0);

Then, after the dialog I removed the character that was involved with the conversation and added the copy (In the KB section):

SetOnStage(CHARACTERGUID_UndeadTeresa_5283cab8-a5c5-4a9e-898e-028e77e40d22,0);
SetOnStage(CHARACTERGUID_UndeadTeresa_001_a2286b44-f384-423c-88d4-2a5fc6c217e6,1);

You can briefly see the disappear and reappear, but its much preferred to an enemy who runs from combat.

Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
Did you check the properties on the NPC that flees and make sure that "Can Fight" and "Can Join Combat" were enabled?


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Nov 2017
J
stranger
OP Offline
stranger
J
Joined: Nov 2017
I did, or rather, that was part of the code.

I have "Can Join Combat" Disabled for all, but at the end of the event I re-enable it in script. The other enemies would join combat normally but not the one from the dialog.

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
When a character enters a dialog, story automatically prevents it from joining combat. My guess is that your script is conflicting with this code.

Disabling CanJoinCombat/CanFight is generally not a good way to temporarily prevent combat from starting. It's better to use alignments and relations.


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