39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
|
Scriptname _00E_OldSherath_RiddleTriggerScript extends ObjectReference
|
|||
|
|
|||
|
ObjectReference Property ObjectToInsert Auto
|
|||
|
ObjectReference Property ObjectToEnable Auto
|
|||
|
ObjectReference Property SecretWall Auto
|
|||
|
ObjectReference Property WallXMarker Auto
|
|||
|
GlobalVariable Property RiddleGlobal Auto
|
|||
|
int RiddleValue
|
|||
|
Actor property PlayerREF Auto
|
|||
|
Sound Property DownSound Auto
|
|||
|
|
|||
|
Event OnTriggerEnter (ObjectReference akActionRef)
|
|||
|
|
|||
|
|
|||
|
RiddleValue = RiddleGlobal.GetValueInt()
|
|||
|
|
|||
|
|
|||
|
;if akActionRef == ObjectToInsert
|
|||
|
Debug.Messagebox("Ein seltsames Gef<65>hl <20>berkommt Euch, als ihr den Gegenstand auf den Altar legt. Es f<>hlt sich aber... richtig an.")
|
|||
|
ObjectToEnable.Enable()
|
|||
|
ObjectToInsert.Disable()
|
|||
|
DownSound.Play(PlayerREF)
|
|||
|
RiddleGlobal.SetValue(RiddleValue +1)
|
|||
|
RiddleValue = RiddleGlobal.GetValueInt()
|
|||
|
|
|||
|
;elseif akActionRef != ObjectToInsert
|
|||
|
Debug.MessageBox("Ein flaues Gef<65>hl kommt in Eurem Magen auf, als ihr den Gegenstand auf das Podest legt. Es scheint nicht der Richtige zu sein.")
|
|||
|
;endif
|
|||
|
|
|||
|
|
|||
|
if RiddleValue == 4
|
|||
|
SecretWall.TranslateToREF(WallXMarker, 10)
|
|||
|
Debug.Notification("Riddle solved!")
|
|||
|
else
|
|||
|
return
|
|||
|
|
|||
|
endif
|
|||
|
|
|||
|
EndEvent
|