enderalse/scripts/source/_00e_theriantrophist_detectlifesc.psc

26 lines
945 B
Plaintext

Scriptname _00E_Theriantrophist_DetectLifeSC extends activemagiceffect
Spell Property _00E_Theriantrophist_DetectLife Auto
GlobalVariable Property _00E_Theriantrophist_DetectLifeSwitchedOff Auto
Shout Property _00E_A0_Theriantrophist_ToggleDetectLife Auto
WordOfPower Property _00E_FS_Theriantrophist_ToggleDetectLife_Word01 Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
RegisterForSingleUpdate(0)
_TeachToggleBeastInstinctTalent()
EndEvent
Function _TeachToggleBeastInstinctTalent()
Actor player = Game.getPlayer()
if !player.HasSpell(_00E_A0_Theriantrophist_ToggleDetectLife)
Game.getPlayer().addShout(_00E_A0_Theriantrophist_ToggleDetectLife)
Game.unlockWord(_00E_FS_Theriantrophist_ToggleDetectLife_Word01)
EndIf
Endfunction
Event OnUpdate()
if (_00E_Theriantrophist_DetectLifeSwitchedOff.getValueInt() == 0)
_00E_Theriantrophist_DetectLife.cast(self.getTargetActor())
Endif
RegisterForSingleUpdate(5)
Endevent