curme Posted July 6, 2012 Share Posted July 6, 2012 I'm a all new to this, so maybe I am missing something simple. I want my follower to turn into a flame atronach during combat. Should the value be at default? When I choose autofill, it fills in AtronachFlameRace. Regardless, neither option works. Is it just not possible? Scriptname FlameOn extends Actor Race Property AtronachFlameRace AutoRace ActorRace Event OnInit() ActorRace = GetRace()EndEvent Auto State Waiting Event OnCombatStateChanged(Actor actorRef, int combatState) GoToState("Busy") RegisterForSingleUpdate(1) EndEventEndState State Busy Event OnUpdate() if (IsInCombat() && GetRace() == ActorRace) SetRace(AtronachFlameRace) elseif (!IsInCombat() && GetRace() == AtronachFlameRace) SetRace(ActorRace) else GoToState("Waiting") Return endif RegisterForSingleUpdate(1) EndEventEndState Link to comment Share on other sites More sharing options...
Cynster Posted July 6, 2012 Share Posted July 6, 2012 Have you tried looking at the sheogorath wabbajack quest? In one part you have to change a storm attronach into a fire attronach with the wabbajack - there might be a script around there so you can see how it is done in vanilla Link to comment Share on other sites More sharing options...
steve40 Posted July 6, 2012 Share Posted July 6, 2012 (edited) Curme, what is the problem? I just tried your script on my wifey Jordis and it worked perfectly :thumbsup: I used autofill to fill the property, btw. Edit: the Actor form that I added the script to was "HousecarlSolitude". http://static.skyrim.nexusmods.com/mods/images/14718-1-1341573568.jpg Edited July 6, 2012 by steve40 Link to comment Share on other sites More sharing options...
curme Posted July 6, 2012 Author Share Posted July 6, 2012 Curme, what is the problem? I just tried your script on my wifey Jordis and it worked perfectly :thumbsup: I used autofill to fill the property, btw. Edit: the Actor form that I added the script to was "HousecarlSolitude". http://static.skyrim.nexusmods.com/mods/images/14718-1-1341573568.jpg Thanks for confirming that I am not crazy! :tongue: It must be a problem with my modded npc. I'm going to fool around with clean saves and see if I can't get it to work. Thanks! Link to comment Share on other sites More sharing options...
curme Posted July 6, 2012 Author Share Posted July 6, 2012 I got it to work! The problem was I wasn't working with a clean save. A rookie mistake. I just need to add some spells so she just doesn't do melee, maybe a fancy effect when she changes. We'll see how that goes! Thanks for testing it out for me! It helped a lot! :dance: Link to comment Share on other sites More sharing options...
curme Posted July 7, 2012 Author Share Posted July 7, 2012 Now that it works, how would I add a magic effect before and after the transformation change? I think I need to add Explosion Property ExplosionIllusionDark01 Auto & PlaceAtMe(ExplosionIllusionDark01) if that is correct, where would I put it in the script? Link to comment Share on other sites More sharing options...
Recommended Posts