Jump to content

Help with adding a Multiple Followers script/function to my mod?


Recommended Posts

I'm trying to update my Companion Perks mod to include its own function of having multiple followers.

 

I'm looking right now at FollowersScript. This script points to two other scripts - CompanionActor and Actor, which mostly handle Affinity and basic Actor definitions, as far as I can tell (I can read scripts, I just can't string them together the way Papyrus expects).

 

Anyway, starting with the section of the FollowersScript script that says:

"Function SetCompanion" (should be line 761 in Ultra Edit, otherwise it's 1/3 of the way down)

 

So far I've commented out the section that covers (I believe, from what I can read of it) the auto-dismissal of your current follower (show dismiss message, pick a destination for them, some other related parts nested inside a primary "If" statement).

 

The rest of it looks fairly straightforward - SendCompanionChangeEvent, which changes the Companion's status from ActorToMakeCompanion to IsNowCompanion, and the PlayerHasActiveCompanion bool is set to 1 (true), as well as the parts that move the intended follower into the appropriate Faction(s).

 

There's a completely different section (from what I can see) regarding manually dismissing Companions, which I won't touch since I still need those.

 

I'm unable to copy/paste the section of the script I'm working on for review - something about this editor not playing nice with the function or somesuch, I haven't been able to figure it out.

 

Anyway, if anyone can open up FollowersScript and take a look, or if anyone knows of a modder's resource for a multiple followers script, fragment, or even tutorial on editing the script, I'd appreciate the help.

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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