When text input is unavailable, fallback to regular Master lock on the Rune-adorned chest
This commit is contained in:
parent
e2c4c03f77
commit
d645976f59
Binary file not shown.
@ -2,22 +2,23 @@ Scriptname _00E_FS_ChestOpenPassphrase extends ObjectReference
|
||||
|
||||
Event OnInit()
|
||||
|
||||
Self.BlockActivation(True)
|
||||
BlockActivation(True)
|
||||
Lock(100)
|
||||
|
||||
EndEvent
|
||||
|
||||
Event OnActivate(ObjectReference akActionRef)
|
||||
|
||||
if Self.IsActivationBlocked()
|
||||
|
||||
if CheckForPassphrase()
|
||||
Self.Lock(False)
|
||||
Self.BlockActivation(False)
|
||||
Self.Activate(akActionRef)
|
||||
if ! EnderalFunctions.TextInputEnabled() || ! IsLocked()
|
||||
Activate(akActionRef, true)
|
||||
elseif CheckForPassphrase()
|
||||
Lock(False)
|
||||
BlockActivation(False)
|
||||
Activate(akActionRef)
|
||||
else
|
||||
_00E_MQ07a_sRChainNothingHappens.Show()
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
EndEvent
|
||||
|
Loading…
Reference in New Issue
Block a user