Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Aug 2014
M
MAHak Offline OP
member
OP Offline
member
M
Joined: Aug 2014
I have a story script that turns a faction of 3 NPCs 'evil' after one of them ends a dialog and combat ensues. But the 3 enemies won't attack and it seems like it is only the NPC that started the dialog who takes a combat stance, the rest just stands idly but are in the combat round queue.
Any ideas to what's wrong? Do I need to give them some scripts perhaps?

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
How do you change the faction of all three NPCs to evil?

Joined: Aug 2014
M
MAHak Offline OP
member
OP Offline
member
M
Joined: Aug 2014
INIT

DB_Raiders(CHARACTERGUID_TalkingRaider_84f86686-51b3-487e-b416-ed0daff2067a);
DB_Raiders(CHARACTERGUID_Raider1_fee3d41f-d19b-4cac-be27-d8b7e71aa949);
DB_Raiders(CHARACTERGUID_Raider2_2949f204-138a-49b9-b14c-16063169c492);


KB

IF
DialogEnded("RaiderDialog", _ID)
AND
DB_Raiders(_Raiders)
THEN
SetFaction(_Raiders,"Evil NPC");

Joined: Aug 2014
M
MAHak Offline OP
member
OP Offline
member
M
Joined: Aug 2014
Branvex figured it out!
I probably forgot to mention that Raider 1 and 2, were following TalkingRaider when combat started and apperantly that mess it up big time!
So I stopped having the 2 raiders following the other and now combat works fine.

There seems to be a procedure to follow (pun intended) when you want NPCs to follow others.

*How to use
- Make sure Owner and Follower are Global
- Give follower the GEN_Follower script (Either use the build in follow Behaviour or create own customized follow script)
- Add Follower to DB_Followers and add the Char flag that is set on a char to make owner.
- Add follower to DB_FollowerIgnoreRegions if you want it not to appear in certain regions
- Add follower to DB_FollowerDisapearInTrigger if you don't want the specific follower to show up in certain triggers
- Add trigger to DB_HideAllFollowersInTrigger if you want no followers to show up in this trigger (Such as HoE)

Joined: Oct 2017
Location: United Kingdom
journeyman
Offline
journeyman
Joined: Oct 2017
Location: United Kingdom
I found the simple solution to this: just use CharacterSetFollowCharacter instead of CharacterFollowCharacter. Tested it and combat works fine now opa


Moderated by  Larian_KVN 

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