Jump to content

Follower scripting problem


Recommended Posts

Howdy.

I was scripting my follower, and ever since I was getting struck into one problem... Since my follower is hired, he won't ever react on my hits. I mean literally. Even startcombat player won't make him attack me. Have anybody of you had the same problem? can you help me to understand where's the problem?

Hiring scripted lines are...

Set AAAF1REF.Waiting to 0

Set AAAF1REF.IsFollowingDefault to 1
Set AAAF1REF.IsFollowingLong to 0
Set AAAF1REF.CombatStyleRanged to 1
Set AAAF1REF.CombatStyleMelee to 0
Set AAAF1REF.HasBeenHired to 1
SetPlayerTeammate 1
SetIgnoreFriendlyHits 1
AAAF1REF.evp
Set VNPCFollowers.bHumanoidInParty to 1
IgnoreCrime 1
AAAF1REF.addperk CompanionSuite
AAAF1Ref.Addtofaction FollowerFaction 1
set VNPCFollowers.bPlayerHasFollower to 1
AAAF1REF.SetFactionRank TeammateFaction 1
set VNPCFollowers.nCurrentFollowers to (VNPCFollowers.nCurrentFollowers + 1)
player.addtofaction AAAF1Faction 1
Firing script lines are...
ShowMessage AAAF1left
Set AAAF1Ref.Waiting to 0
Set AAAF1Ref.HasBeenHired to 0
Set AAAF1Ref.L38 to 0
Set AAAF1Ref.IsFollowingDefault to 0
Set AAAF1Ref.IsFollowingLong to 0
AAAF1Ref.SetPlayerTeammate 0
AAAF1REF.evp
set VNPCFollowers.bHumanoidInParty to 0;
AAAF1REF.SetPlayerTeammate 0
AAAF1REF.removeperk CompanionSuite
RemoveFromFaction FollowerFaction
set VNPCFollowers.nCurrentFollowers to (VNPCFollowers.nCurrentFollowers - 1)
player.removefromfaction AAAF1Faction
SetAV Assistance 0
if VNPCFollowers.nCurrentFollowers == 0
set VNPCFollowers.bPlayerHasFollower to 0
endif
I think I tried changing everything I know. Even added line 'SetIgnoreFriendlyHits 0', but it's not present there.
Edited by Maxandmov
Link to comment
Share on other sites

Nah, I've managed to find a mistake. Forgot to do

AAAF1Ref.RemoveFromFaction TeammateFaction.

There's one more problem though. When I do AAAF1Ref.evp when Caesar dies and while AAAF1Ref is a teammate, he firstly runs to travel location (The fort, where he usually stays), and only afterwards start a dialogue as it's supposed to be. I've put enough conditions for the travel package NOT to work, but it still works? :S

P.S. I guess I've just fixed that.

Edited by Maxandmov
Link to comment
Share on other sites

It might have been too high in the list of packages. The AI seems to pick packages starting at the top of the list. When it finds a package it can run, it picks that one, even if there's one lower that's a better fit for the situation. Drove me nuts until I figured that out.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...