enderalse/source/scripts/_00e_nqaltyogoshventilscn.psc

61 lines
2.9 KiB
Plaintext

Scriptname _00E_NQAltYogoshVentilSCN extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
Actor PlayerREF = Game.GetPlayer()
If akActionRef == PlayerREF && PlayerREF.GetItemCount(_00E_NQYogoshAntriebskern) > 0
PlayerREF.RemoveItem(_00E_NQYogoshAntriebskern, 1)
Ventil.Enable()
_00E_Questshader.Stop(VentilCap)
NQAltYogosh.SetCurrentStageID(20)
ElseIf akActionRef != PlayerREF
If (NQAltYogosh.GetCurrentStageID() == 20)
door01.Lock(150)
door02.Lock(150)
door01.BlockActivation(True)
door02.BlockActivation(True)
door01.Enable()
door02.Enable()
NQAltYogosh.SetCurrentStageID(30)
NQAltYogoshLinker.Enable()
Utility.Wait(1)
NQAltYogoshWaterPlane.TranslateTo(NQAltYogoshWaterPlane.GetPositionX(), NQAltYogoshWaterPlane.GetPositionY(), NQAltYogoshWaterPlane.GetPositionZ() + 880, 0, 0, 0, 10, 0)
NQAltYagoshWaterObjekt01.TranslateTo(NQAltYagoshWaterObjekt01.GetPositionX(), NQAltYagoshWaterObjekt01.GetPositionY(), NQAltYagoshWaterObjekt01.GetPositionZ() + 880, 0, 0, 0, 10, 0)
NQAltYagoshWaterObjekt02.TranslateTo(NQAltYagoshWaterObjekt02.GetPositionX(), NQAltYagoshWaterObjekt02.GetPositionY(), NQAltYagoshWaterObjekt02.GetPositionZ() + 880, 0, 0, 0, 10, 0)
NQAltYagoshWaterObjekt03.TranslateTo(NQAltYagoshWaterObjekt03.GetPositionX(), NQAltYagoshWaterObjekt03.GetPositionY(), NQAltYagoshWaterObjekt03.GetPositionZ() + 880, 0, 0, 0, 10, 0)
NQAltYagoshWaterObjekt04.TranslateTo(NQAltYagoshWaterObjekt04.GetPositionX(), NQAltYagoshWaterObjekt04.GetPositionY(), NQAltYagoshWaterObjekt04.GetPositionZ() + 880, 0, 0, 0, 10, 0)
NQAltYagoshWaterObjekt05.TranslateTo(NQAltYagoshWaterObjekt05.GetPositionX(), NQAltYagoshWaterObjekt05.GetPositionY(), NQAltYagoshWaterObjekt05.GetPositionZ() + 880, 0, 0, 0, 10, 0)
NQAltYagoshWaterObjekt06.TranslateTo(NQAltYagoshWaterObjekt06.GetPositionX(), NQAltYagoshWaterObjekt06.GetPositionY(), NQAltYagoshWaterObjekt06.GetPositionZ() + 880, 0, 0, 0, 10, 0)
Utility.Wait(10)
Fish.enable()
Utility.Wait(18)
NQAltYogoshLinker.Disable()
Else
_00E_MQ07a_sRChainNothingHappens.Show()
EndIf
EndIf
EndEvent
MiscObject Property _00E_NQYogoshAntriebskern Auto
ObjectReference Property Ventil Auto
ObjectReference Property VentilCap Auto
EffectShader Property _00E_Questshader Auto
Quest Property NQAltYogosh Auto
ObjectReference Property NQAltYogoshLinker Auto
ObjectReference Property NQAltYogoshWaterPlane Auto
ObjectReference Property NQAltYagoshWaterObjekt01 Auto
ObjectReference Property NQAltYagoshWaterObjekt02 Auto
ObjectReference Property NQAltYagoshWaterObjekt03 Auto
ObjectReference Property NQAltYagoshWaterObjekt04 Auto
ObjectReference Property NQAltYagoshWaterObjekt05 Auto
ObjectReference Property NQAltYagoshWaterObjekt06 Auto
ObjectReference Property Fish Auto
ObjectReference Property door01 Auto
ObjectReference Property door02 Auto
Message Property _00E_MQ07a_sRChainNothingHappens Auto