Jump to content

[LE] Follower equipping certain clothes based on location?


Recommended Posts

So, Iâm pretty new to creating mods. What Iâm trying to do however, is create a custom voiced follower. I know most of what I need to do, and I have a handle on what a default âoutfitâ is and all that junk. What Iâd like to do is something very similar to what Amazing Follower Tweaks did. This was the option to set outfits that the follower would change into depending on where they were/what they were doing. Like if the follower walked into the walls of a city I.e whiterun, theyâd change out of their armor and into something different and vice versa. Maybe also even have a different outfit for sleeping. I think Vilja had something similar save for it not actually being customizable and the outfits being specific clothing.

What I wanted to know was how complicated is this kind of scripting? Could one attempt to put something similar together in creation kit? Or would they need a whole other set of outside programming to get it to work? Obviously if I could, Iâd just use the mod along with my follower, but it would apparently kind of break the followerâs AI. So Iâm a little wary of trying that. If anyone has any advice on this it would be super appreciated, even if that advice is telling me that it might be a lost cause. Iâve never written scripts before but I kind of have a funky grasp on what makes basic followers work :/.

Link to comment
Share on other sites

I think the usual approach is to have a hidden ability on the NPC. Say you want an NPC that equips gear when sleeping or swimming; you'd set up two magic effects, call 'em EquipOnSleep and EquipOnSwim or whatever, and put them into a magic Ability you create. Then, in the spell form, you can apply IsSleeping and IsSwimming conditionals, which will be checked regularly. Once the condition is met, the magic effect will start and trigger OnEffectBegin and OnMagicEffectApply events, and once it is no longer met, it will trigger OnEffectFinished events. You can then add a script to the magic effects to listen for those events and perform outfit changes.

 

Unfortunately even with SKSE the tools to actively manipulate NPC outfits are kind of lacking. Be prepared for frustrations.

Link to comment
Share on other sites

That...actually makes a LOT of sense, wow. I didnât even think about using something like a spell to make the outfit change. Goes to show how much I know about this so far, haha. Iâll definiteyl start looking into that realm of info on the wiki.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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