4
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.
 
 
 

33 lines
785 B

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().GetStage()
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