I need help creating a script that transforms the player into Zigurd88's Demon Form when your health goes below 20% or 10% while wearing an armor with a scripted magic effect. Oh and this is a private modification as I don't have permission to upload. Here's what I want it to do (in order) 1. When the player's health goes below 20% make the player invulnerable. 2. Immediately after that fully restore the player's health. 3. Add the DemonChange magic effect to the player. 4. After the transformation is complete disable the player's invulnerability. 5. After Demon Form wears off restore player's health to full and reset the script so if the player's health goes below 20% it'll start all over again. I could script just about anything in fallout, but papyrus just seems so much more complicated. I just can't quite wrap my head around it. I have tried using the avoid death perk's script as a base to go off of but this here is all I got... Scriptname DemonTransformationScript extends ActiveMagicEffect
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked )
PercentHealth = GetTargetActor().GetAVPercentage("Health")
If PercentHealth < 0.1
If (Game.GetPlayer().HasMagicEffect(RockjointEffect))
PlayerProperty.SetInvulnerable(true)
HealSpell.Cast(GetTargetActor())
DemonSpell.Cast(GetTargetActor())
InvicibleTimer.SetValue + 1.0
EndIf
EndIf
endEvent
Spell Property HealSpell Auto
Spell Property DemonSpell Auto
float Property PercentHealth = 100.0 Auto
GlobalVariable Property InvicibleTimer Auto
Ref Property PlayerProperty Auto I wish I could just use player.setinvulnerable but I doubt that works with papyrus. Well that's what I got so far doubt it's right but I'm not sure where to go from here.