enderalse/source/scripts/_00e_securechest_script.psc

23 lines
614 B
Plaintext

Scriptname _00E_SecureChest_script extends ObjectReference
ObjectReference Property HostChest Auto
actor property playerREF auto
Event OnInit()
self.BlockActivation()
EndEvent
Event OnActivate(ObjectReference player)
if _00E_SecureChestTutorialDone.GetValue() == 0 && _00E_DisableQuestTutorials.GetValueInt() == 0
_00E_SecureChestTutorialDone.SetValue(1)
_00E_SecureChestTutorial.Show()
endif
HostChest.Activate(player)
return
endevent
Message Property _00E_SecureChestTutorial Auto
GlobalVariable Property _00E_SecureChestTutorialDone Auto
GlobalVariable Property _00E_DisableQuestTutorials Auto