SouthernWolfy Posted March 4, 2019 Share Posted March 4, 2019 I have been working on a custom follower for Skyrim SE for some time and I have run into a few issues. 1. She has a leveled familiar what will be changed to red glow instead the vanilla blueish. I used the vampiric drain for the hand effect and the FX for Kodlak's "Wolf Spirit" from Glory of the Dead to replace the blueish glow. Now, the problem is I can not figure out how to change the area summon effect (summontargetfx.nif) to match. Supposed to be able to do it in Photoshop but it loads some sort of 3D model. 2. She will be using bound bow and swords. I added 2 bound mystic swords and bound mystic bow weapons directly into her inventory. The swords work seemingly perfectly, the bow however, is being stubborn. The bound bow has a script attached to its linked magic effect. I took that script and added it to her actor sheet. The bow goes away when she sheathes it ,but it looks like its supposed to add and remove bound arrows as well. It does not and she uses any arrow such as iron or steel. I am thinking if I change caster.-------- to actor.-------- or the her name "Lolia" it might work, I don't know. 3. I want her to become a werewolf at roughly 15% health and change back after about 10 seconds. I found a script while searching this site. It seems work for the most part, but she tries to equip spells and just stands around. However, sometimes she changes and does not have spells equiped she goes and slaughters badies. She made off the vanilla Breton This is the script that I am using currently. Its set to actor health 0.99 for testing and player get combat state 0 for changing back. I am pretty lost when it comes to scripting and programming. Any help with my issues will be greatly appreciated. Scriptname LoliaWerewolfChanger extends Actor SPELL Property WerewolfChangeFX Auto SPELL Property DLC1RevertForm Auto Actor Property actorproperty Autorace property raceyouwant autoFaction property WerewolfFaction autoFaction property PlayerFaction auto Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) float ActorHealth2 = actorproperty.GetAVPercentage("Health") if (ActorHealth2 < 0.99) werewolfchangefx.cast(actorproperty) actorproperty.SetRelationshipRank(Game.GetPlayer(), 3) actorproperty.SetFactionRank(WerewolfFaction, 1) actorproperty.SetFactionRank(PlayerFaction, 1) registerforupdate(3.0) endifEndEvent event onupdate() float ActorHealth2 = actorproperty.GetAVPercentage("Health") if (Game.GetPlayer().GetCombatState() == 0)DLC1RevertForm.cast(actorproperty) actorproperty.setrace(raceyouwant) actorproperty.SetRelationshipRank(Game.GetPlayer(), 3) actorproperty.SetFactionRank(PlayerFaction, 1) actorproperty.RemoveFromFaction(WerewolfFaction) unregisterforupdate() endifendevent Link to comment Share on other sites More sharing options...
ReDragon2013 Posted March 6, 2019 Share Posted March 6, 2019 You are using Skyrim SE, the right place is here: https://forums.nexusmods.com/index.php?/forum/4070-skyrim-special-edition-creation-kit-and-modders/ Maybe next is useful for you, no idea whether it fit your purpose. LoliaWerewolfChangerScript Scriptname LoliaWerewolfChangerScript extends Actor ; https://forums.nexusmods.com/index.php?/topic/7450981-need-help-with-custom-follower-for-skyrim-se/ SPELL PROPERTY WerewolfChangeFX auto SPELL PROPERTY DLC1RevertForm auto Faction PROPERTY WerewolfFaction auto ; autofill Faction PROPERTY PlayerFaction auto ; autofill ;Actor PROPERTY myActor auto ; actorproperty Race PROPERTY myRace auto ; raceyouwant ; -- EVENTs -- EVENT OnCombatStateChanged(Actor akTarget, Int aeCombatState) ; 0 - not in combat, 1 - in combat, 2 - searching ;;;IF (aeCombatState == 0) ;;; myF_Transform(False) ;;; gotoState("") ; ### STATE ### ;;;ENDIF ENDEVENT EVENT OnEnterBleedout() ENDEVENT EVENT OnDeath(Actor akKiller) ;;; gotoState("Done") ; ### STATE ### ENDEVENT ;============================ auto state Waiting ;================= EVENT OnHit(ObjectReference akAggressor, Form akSource, Projectile akProj, Bool b1, Bool b2, Bool b3, Bool b4) IF ( b4 ) RETURN ; - STOP - hit was blocked by this actor ENDIF ;--------------------- IF (self.GetActorValuePercentage("Health") > 0.98) RETURN ; - STOP - health is good enough! ENDIF ;--------------------- minor or equal to 98 percentage of health gotoState("Busy") ; ### STATE ### myF_Transform(TRUE) RegisterForSingleUpdate(3.0) ENDEVENT ;======= endState ;============================ state Busy ;========= EVENT OnUpdate() IF (Game.GetPlayer().GetCombatState() == 0) myF_Transform(False) gotoState("") ; ### STATE ### RETURN ; - STOP - left combat ENDIF ;--------------------- IF self.IsDead() gotoState("Done") ; ### STATE ### ELSE RegisterForSingleUpdate(3.0) ENDIF ENDEVENT ;======= endState ;============================ state Done ;========= endState ; -- FUNCTION -- ; 0 - Neutral ; 1 - Enemy ; 2 - Ally ; 3 - Friend ;------------------------------------- FUNCTION myF_Transform(Bool bWerewolf) ;------------------------------------- IF ( bWerewolf ) WerewolfChangeFX.Cast(self as ObjectReference) self.SetFactionRank(WerewolfFaction, 1) ELSE DLC1RevertForm.Cast(self as ObjectReference) self.SetRace(myRace) self.RemoveFromFaction(WerewolfFaction) ENDIF self.SetFactionRank(PlayerFaction, 1) self.SetRelationshipRank(Game.GetPlayer(), 3) ENDFUNCTION Link to comment Share on other sites More sharing options...
SouthernWolfy Posted March 7, 2019 Author Share Posted March 7, 2019 Oh, I'm sorry. I thought this was the Skyrim SE section. How do I move this topic over there? I will try that script and I will let you know. I cant tell what it is supposed to do. Link to comment Share on other sites More sharing options...
SouthernWolfy Posted March 7, 2019 Author Share Posted March 7, 2019 I loaded the script that you provided in creation kit. It says that the script was successfully compiled and I added it to her actor sheet and took all her weapons away. Got in-game a few times at Fort Greymore to see what it does, but nothing seems to happen. They wail on her till she goes down. What might I be missing? Link to comment Share on other sites More sharing options...
Recommended Posts