Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Jun 2013
old hand
OP Offline
old hand
Joined: Jun 2013
I'm trying to use the "CharacterFollowCharacter" Call after dialog. That works fine.

The NPC is supposed to follow the player and help out until certain point.

But when combat is initiated the !FIGHT! splash pops up and then it seems to hang. No turns get advanced and I can't perform any actions.

My first thought was maybe this is an issue with character alignment but I'm not really sure.

Any ideas?

Last edited by SniperHF; 14/08/14 12:52 AM.
Joined: Aug 2014
R
apprentice
Offline
apprentice
R
Joined: Aug 2014
Does the fight work without the NPC following?

Joined: Jun 2013
old hand
OP Offline
old hand
Joined: Jun 2013
Yes.

Joined: Jul 2014
enthusiast
Offline
enthusiast
Joined: Jul 2014
I assume you have the alignment file added already if your combat is working without the NPC. I would try removing the CharacterFollowCharacter instruction on the condition of combat initiating and see if that stops the freeze.

Post up your code if you like, might help give an idea what's happening.


Escape From Smalcatraz: Steam/Nexus. Forum thread.
Joined: Aug 2014
R
apprentice
Offline
apprentice
R
Joined: Aug 2014
Ok - here's a big list of troubleshooting steps i would go through.

Have you waited at least a minute (time it) to see if it's actually hung up, or if it's just a character not having a valid combat option so stalling until their turn times out?

How is the combat being triggered? (proximity, alignment change, damage, etc)

Has the alignments file been added to the MOD directory?

What are the alignments of the bad guys/ followers /player controlled characters?

If you change all enemies to Evil_Npc and all people on your side to Hero, does it work?

Same for evil and good?

If you make the follower part of the party instead (check the IsPlayer), do they have a valid weapon? if you hold control while not in combat, can they attack?

is the "canFight" marked on all characters?

Joined: Jun 2013
old hand
OP Offline
old hand
Joined: Jun 2013
The script is pretty basic really.

Originally Posted by Story Editor

IF
DialogStartRequested(CHARACTER_Fisher,_Player)
THEN
DialogStartTwoSpeakerDialog("fishingattack",CHARACTER_Fisher,_Player);

IF
DialogEnded("fishingattack", _)
THEN
CharacterFollowCharacter(CHARACTER_Fisher,CHARACTER_Player1,1);




Originally Posted by RestarttGaming
Ok - here's a big list of troubleshooting steps i would go through.

Have you waited at least a minute.


Yes.

Quote

How is the combat being triggered? (proximity, alignment change, damage, etc)


Proximity. I'm wondering if this is part of the problem. It seems like the enemies see my characters before combat is initiated. There is a red ! that pops up above their heads.

Quote

Has the alignments file been added to the MOD directory?

It's in MyMod/Story/Alignments.

Quote

What are the alignments of the bad guys/ followers /player controlled characters?

If you change all enemies to Evil_Npc and all people on your side to Hero, does it work?


Bad guys are Evil_Npc. The NPC follwer and my player character are both Good. Just tried hero and it does the same thing.

Quote

If you make the follower part of the party instead (check the IsPlayer), do they have a valid weapon? if you hold control while not in combat, can they attack?


Has a valid weapon and can attack. And oddly enough combat doesn't work when the NPC is a player either.

Also what's weird is if I set the NPC to walk toward a point trigger near the enemies combat between the NPC and the enemies works fine.

Thanks for the replies.

Last edited by SniperHF; 14/08/14 07:03 PM.
Joined: Jul 2014
R
apprentice
Offline
apprentice
R
Joined: Jul 2014
Use CharacterSetFollowCharacter instead.

CharacterFollowCharacter, CharacterMoveToCharaceter, etc., the whole sereis seems to have super high priority and seems to break the game in various way. One of those ways is that combat will hang if they join a combat.

The main story files also never use CharacterFollowCharacter, generally not a good sign.

Joined: Jun 2013
old hand
OP Offline
old hand
Joined: Jun 2013
CharacterSetFollowCharacter did it. Thanks.

CharacterFollowCharacter and SetFollow seem to behave differently in terms of how the NPC moves too. When using the former they seem to act as a party member obeying formations.

Haven't run into a problem with CharacterMoveToCharaceter yet but I'll keep that in mind.

Last edited by SniperHF; 14/08/14 08:01 PM.

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