enderalse/scripts/source/_00e_a1_invisibilitysc.psc

27 lines
687 B
Plaintext

Scriptname _00E_A1_InvisibilitySC extends activemagiceffect
Event OnEffectStart(Actor akTarget, Actor akCaster)
SneakBefore = akCaster.GetBaseActorValue("Sneak")
SneakModBefore = akCaster.GetBaseActorValue("SneakMod")
akTarget.SetActorValue("SneakMod", (SneakModBefore + 75))
akTarget.SetActorValue("Sneak", (SneakBefore + 75))
akTarget.AddPerk(_00E_A1_InvisibilityPerk)
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
akTarget.SetActorValue("SneakMod", SneakModBefore)
akTarget.SetActorValue("Sneak", SneakBefore)
akTarget.RemovePerk(_00E_A1_InvisibilityPerk)
EndEvent
float SneakBefore
float SneakModBefore
Perk Property _00E_A1_InvisibilityPerk Auto