pburnt Posted February 3, 2019 Posted February 3, 2019 I can't seem to find a keyword that labels current followers. There's a faction for PlayerFollowerFaction but doesn't seem to fit the bill. I thought about targeting the followerPlayer package but some followers have custom ones. Do I need to create a custom keyword?
worik Posted February 3, 2019 Posted February 3, 2019 For the current followers there is a CurrentFollowerFaction. (https://en.uesp.net/wiki/Skyrim:Factions_C#CurrentFollowerFaction ) NPC usually cycle between the PotentialFollowerFaction -> hire -> CurrentFollowerFaction -> dismiss -> PotentialFollowerFaction But there are exceptions to this, with resulting slightly different behaviour. Especially modded NPCs
pburnt Posted February 3, 2019 Author Posted February 3, 2019 2 minutes ago, worik said: For the current followers there is a CurrentFollowerFaction. (https://en.uesp.net/wiki/Skyrim:Factions_C#CurrentFollowerFaction ) Ah! I didn't see that. Thank you very much!
pburnt Posted February 9, 2019 Author Posted February 9, 2019 Learning to script is harder than I thought. Never was good at learning new languages or syntax. English is hard enough. Scriptname SummonFollowersScript Extends ActiveMagicEffect Faction Property CurrentFollowerFaction Auto Event OnEffectStart(Actor akTarget, Actor akCaster) Actor Followers = ????????????????? if Followers SummonToPlayer(Followers) endif EndEvent Function SummonToPlayer(Actor Followers) if (Followers.GetFactionRank("CurrentFollowerFaction") >= 1) Followers.MoveTo(Game.GetPlayer()) endif EndFunction Keep getting errors for everything I've put to define my followers.
tasairis Posted February 9, 2019 Posted February 9, 2019 What are you trying to do? Find a nearby follower and teleport them to the player? (And you aren't using a follower framework?) There is no "find nearby follower" or even "find nearby NPC in faction" function in Papyrus so you will have to use another method...
pburnt Posted February 9, 2019 Author Posted February 9, 2019 1 hour ago, tasairis said: What are you trying to do? Find a nearby follower and teleport them to the player? (And you aren't using a follower framework?) There is no "find nearby follower" or even "find nearby NPC in faction" function in Papyrus so you will have to use another method... Yes. Ok.
pburnt Posted February 10, 2019 Author Posted February 10, 2019 I'm not giving up on this. I looked at AeonVita's script to see if there was a different way of doing it but that didn't work the way I wanted it to. I'll find a way. Scripting is supposed to make just about anything possible.
pburnt Posted February 10, 2019 Author Posted February 10, 2019 Got it to work but still can't summon some followers. Getting closer. Thanks for help giving me motivation to continue.
pburnt Posted February 14, 2019 Author Posted February 14, 2019 If interested, this is my little mod that stops combat between followers because of friendly fire. May need to fire it a couple times. Also adds a spell that summons followers but not sure how close they have to be to be summoned. This might be as good as it gets. Spellbooks located in the Sleeping Giant Inn. SCS01.7z
Recommended Posts
Archived
This topic is now archived and is closed to further replies.