Enderal SE https://mod.pub/enderal-se/38-enderal-se
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.
39 lines
1.1 KiB
39 lines
1.1 KiB
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ühl ü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ü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 |