enderalse/source/scripts/_00e_valstaagcoinchestscript.psc

18 lines
504 B
Plaintext

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