enderalse/scripts/source/_00e_perkexhaustionme.psc

17 lines
617 B
Plaintext

Scriptname _00E_PerkExhaustionME extends activemagiceffect
Event OnEffectFinish(Actor akTarget, Actor akCaster)
;this effect needs to get applied via script, couldn't get an absorb magic effect with the shield bashing spell working
float fTargetStamina = akTarget.GetActorValue("Stamina")
If fTargetStamina >= 50
akTarget.DamageActorValue("Stamina", 50)
PlayerREF.RestoreActorValue("Stamina", 50)
ElseIf fTargetStamina < 50 && fTargetStamina > 0
akTarget.DamageActorValue("Stamina", fTargetStamina)
PlayerREF.RestoreActorValue("Stamina", fTargetStamina)
EndIf
EndEvent
Actor Property PlayerREF Auto