From d645976f59b79225f755aa5f69961af1260a188a Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Tue, 20 Feb 2024 15:48:51 +0100 Subject: [PATCH] When text input is unavailable, fallback to regular Master lock on the Rune-adorned chest --- scripts/_00e_fs_chestopenpassphrase.pex | Bin 1320 -> 1557 bytes .../scripts/_00e_fs_chestopenpassphrase.psc | 17 +++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/scripts/_00e_fs_chestopenpassphrase.pex b/scripts/_00e_fs_chestopenpassphrase.pex index 6eb8e04b409deadb07676193afc981aff08dfcbb..cbc3dd4dbd9316fff973cbfcd37c589add9f7d9e 100644 GIT binary patch literal 1557 zcma)6O?TTw6uq+Lk2s%=v3hp#PDJKh z3`8bmB=DfqaU=ZjWBX~?*XJ*XVIp5EGfd>=x8aB#>HhmLL+x5<9bO6q{}qmE&tybn z?{qBLppt?zDQMcC1Utmqywx88H+4T2h&b9)_xMd zn64a+&4~;zQbyLh`uiMHpYiQm3szmSd2aZUXIc4d$;RX}kCao}>Y-%639FO~ z#Rv5YsuXKy*ans;%m0!UtYDS0h8tL?Y)~wKumOyL?T3?08Wfq$~-nPfO6;^g}7IcHzs%)akCYosRw@LRF*PFP7jV%wv z-1e~U#@w7L&08Msc=*J_hO;-Q@NXqwT2r%6^o~QfiYU5Tc~pzJ9JtJ=-FZ}rJyksC zsnb)Pdq9LsRG~d^_D!3&RN+W8-JP2}XUMZ|xfq)@uUBH|rzFn9P3u|Uu>t@0<@&N` zzJ|{%&Qf@fBzulFJIeie7g#3U^wav_11tG%5-@$L*y9mA#OHW~$Jl4C1G*2nHb~SS zaaf-ba6a@}$kRe9U6D U?T^UwSnJrrV|qShn&t}r0p2(lH2?qr literal 1320 zcma)5TT>G;6h7%?djYHz1O$<)+`PclE7~_;06R*H)X@hYI?FbtD{Zo~NvZxj|AbGD z{ttcfOO|cb2X!+|&iT&u%SnH{{q!xFAV&D!t$+SXOU-h5uesl7?smA+^?-{bSE-;A zx{7ZG$|I-dEAI9vSF1MmwhuRsc4?Cq{t|`E*#oW{+SQzL2U5#Obn2oid`K9 z9oH8%sXM+neeMR}p_=DzNSPj2%01;&`jFM@ql zlJ+J`TH0JH;GW<1dFz5xR`9{a=qeSH>vsh2pZVAYY8vct!cGWQX`+%J^ILt~UMFWCsm zSV$QyGGfou7}f;VB`VNmtRj|iag1?cxE5)Vu49#uGQ%iqT#Vm$%0&`(X4Bb1jK-1I zx@3SFTN;t3%Ng=XMC3-cV#{3S+{jIQD+Lc%c(X_gU^ zK$%Q&EWQ%sR!9TC zGpdtFBQK!4BZyhxo&{Dd8Prcx#0#z)m;$3UW65FGME|?l3=Hl=V&-BD8TMxf>?exR B_eKB! diff --git a/source/scripts/_00e_fs_chestopenpassphrase.psc b/source/scripts/_00e_fs_chestopenpassphrase.psc index dc92e48f..63a77a0a 100644 --- a/source/scripts/_00e_fs_chestopenpassphrase.psc +++ b/source/scripts/_00e_fs_chestopenpassphrase.psc @@ -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 @@ -34,4 +35,4 @@ bool Function CheckForPassphrase() EndFunction -Message Property _00E_MQ07a_sRChainNothingHappens Auto \ No newline at end of file +Message Property _00E_MQ07a_sRChainNothingHappens Auto