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.
18 lines
504 B
18 lines
504 B
ScriptName _00E_ValstaagCoinChestScript Extends ObjectReference
|
|
|
|
;written by Julian "Sagantor"
|
|
;A short, doorblocking puzzle script in which the player
|
|
;has to find three special coins and put them in a fitting
|
|
;chest to open the door
|
|
|
|
MiscObject Property coin Auto
|
|
ObjectReference Property coinContainer Auto
|
|
ObjectReference Property lockedDoor Auto
|
|
|
|
Event OnClose(ObjectReference ref)
|
|
|
|
if(ref == game.GetPlayer() && coinContainer.GetItemCount(coin) == 3)
|
|
lockedDoor.Lock(false)
|
|
EndIf
|
|
EndEvent
|
|
|