enderalse/source/scripts/_00e_fs_ritualist_summontrackingsc.psc

21 lines
551 B
Plaintext

Scriptname _00E_FS_Ritualist_SummonTrackingSC extends activemagiceffect
GlobalVariable Property _00E_FS_PlayerHasSummonedCreature Auto
Bool bCastByPlayer = True ; True for version compatibility
Event OnEffectStart(Actor akTarget, Actor akCaster)
If akCaster == Game.GetPlayer()
bCastByPlayer = True
_00E_FS_PlayerHasSummonedCreature.Mod(1)
Else
bCastByPlayer = False
EndIf
Endevent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
If bCastByPlayer
bCastByPlayer = False
_00E_FS_PlayerHasSummonedCreature.Mod(-1)
EndIf
Endevent