24 lines
603 B
Plaintext
24 lines
603 B
Plaintext
Scriptname _00E_AbBeDrunkScript extends activemagiceffect
|
|
|
|
Actor Property PlayerRef Auto
|
|
Idle Property IdleDrunkStart Auto
|
|
Idle Property IdleDrunkStop Auto
|
|
|
|
Actor TargetRef
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
; Debug.Trace(self + ", OnEffectStart: akTarget = " + akTarget + "; akCaster = " + akCaster)
|
|
If akCaster == None || akCaster == PlayerRef
|
|
Dispel()
|
|
Return
|
|
EndIf
|
|
|
|
TargetRef = akCaster
|
|
TargetRef.PlayIdle(IdleDrunkStart)
|
|
EndEvent
|
|
|
|
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
|
; Debug.Trace(self + ", OnEffectFinish")
|
|
TargetRef.PlayIdle(IdleDrunkStop)
|
|
EndEvent
|