55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
Scriptname _00E_MQ07a_RiddleChain extends ObjectReference
|
|
|
|
Event OnInit()
|
|
|
|
Self.BlockActivation(True)
|
|
|
|
EndEvent
|
|
|
|
Event OnUpdate()
|
|
|
|
Game.EnablePlayerControls()
|
|
Game.SetPlayerAIDriven(False)
|
|
|
|
EndEvent
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
|
|
If !Solved
|
|
|
|
Actor akActor = akActionRef as Actor
|
|
|
|
; akActor.PathToReference(Self, 1.0)
|
|
self.Activate(akActor, True)
|
|
|
|
If MQ07a_BookRiddle.GetValueInt() < 4
|
|
_00E_MQ07a_sRChainNothingHappens.Show()
|
|
Game.EnablePlayerControls()
|
|
Game.SetPlayerAIDriven(False)
|
|
Elseif MQ07a_BookRiddle.GetValueInt() >= 4
|
|
Game.DisablePlayerControls()
|
|
Game.SetPlayerAIDriven(True)
|
|
Solved = True
|
|
Utility.Wait(2)
|
|
OBJDwemerRepositoryDoorM.Play(Self)
|
|
MQ07a.SetStage(95)
|
|
Game.SetPlayerAIDriven(False)
|
|
EndIf
|
|
|
|
RegisterForSingleUpdate(15)
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
EndEvent
|
|
|
|
bool Solved
|
|
|
|
Message Property _00E_MQ07a_sRChainNothingHappens Auto
|
|
|
|
GlobalVariable Property MQ07a_BookRiddle Auto
|
|
|
|
Sound Property OBJDwemerRepositoryDoorM Auto
|
|
|
|
_00E_MQ07a_Functions Property MQ07a Auto |