enderalse/source/scripts/_00e_mq11a_caliaaliasscript.psc

33 lines
794 B
Plaintext

Scriptname _00E_MQ11a_CaliaAliasScript extends ReferenceAlias
EffectShader Property _00E_BloodyFXShader Auto
GlobalVariable Property MQ11a_CaliaCamp Auto
Actor Property PlayerRef Auto
ObjectReference Property MQ11a_SC23_CaliaTalkingActivator Auto
Function UpdateState()
Int mq11aStage = GetOwningQuest().GetCurrentStageID()
If mq11aStage >= 165 && mq11aStage < 215
GoToState("Unconscious")
Else
GoToState("")
EndIf
EndFunction
State Unconscious
Event OnLoad()
Actor caliaRef = GetActorReference()
If MQ11a_CaliaCamp.GetValueInt() < 2
_00E_BloodyFXShader.Play(caliaRef)
EndIf
caliaRef.UnequipAll()
EndEvent
Event OnActivate(ObjectReference akActionRef)
If akActionRef == PlayerRef
MQ11a_SC23_CaliaTalkingActivator.Activate(PlayerRef)
EndIf
EndEvent
EndState