1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
838 B

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)
SendModEvent("PlayerSummonCreature")
Else
bCastByPlayer = False
EndIf
Endevent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
If bCastByPlayer
bCastByPlayer = False
_00E_FS_PlayerHasSummonedCreature.Mod(-1)
; SendModEvent("PlayerSummonCreature")
; this function is called instead of using modevents since those do not work when send from inside a oneffectfinish-event
_FS_Phasmalist_ControlQuest.getAffinityControlQuest().OnPlayerCreatureUnsummon()
EndIf
Endevent