From ba2f87de52729a96b1f6afa87ab5cba70fefee18 Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Fri, 19 Aug 2022 23:56:14 +0200 Subject: [PATCH] The dismantle perk message uses standard activate entrypoint instead of scripted message --- Dismatle perk adds activate options.esp | Bin 0 -> 1602 bytes .../PRKF__00E_SE_DismantlePerk_03009D21.pex | Bin 1336 -> 1254 bytes .../PRKF__00E_SE_DismantlePerk_03009D21.psc | 38 +++++++++++------- 3 files changed, 23 insertions(+), 15 deletions(-) create mode 100644 Dismatle perk adds activate options.esp diff --git a/Dismatle perk adds activate options.esp b/Dismatle perk adds activate options.esp new file mode 100644 index 0000000000000000000000000000000000000000..48508ecabe2a78091f797e1179ec9ee569ead5bd GIT binary patch literal 1602 zcmc(e&ui2`6vtn(TdY;IpcF*GfLB*y>cRH1gq_J6w^>4x?MV!2ci4vJN104pdh1^x zUKRfc{}S*16C!vKFYB9RQ@U$}wiG&t4D;qY-}mM-F9G#meS!J$9G7n>@$SOsPv5&L zuF{79y`kwW1EH2V+6uri{ooGx`zJh3U$7ztVg}~&nNPJnIv7WS{bySPnvEHc60M_I zIiKW0uuSts&SO?IoUw<&b{iB-(f3B~ha~`)dIOp9L8rtj^D3zI_lI5^?P_ywgNr_5>*f=Z6PvM##(Uiwu%v{=>^2pP*V+xQ~!rrzE~Zb;+R(*;{Jir zhTm^Hy*ZWb8&6?#a|a1WI|&=+JdF}_SHwq=i1REwiugjp+DaSzYxPK4*@d0CNwmu( zMJFG#(xfV0IbYUk_bXm!t*&P_FBX5=l@Ial-O8L!s;FxP3bb)D?nBu|+BiSXw45`* z;JR#PY;|nR@>|kWu9N0!1A;5k{Mqm@H%4<6>K~42v0!O&hErLjNav?yVrR81&1=<%B;HBiPK!Q+3g-9=tma!+n#o0yc4X9t$U+6=n z{zX5ePd#hL6eLvDo6DKWnK@_28~^_N{a3L-f^Y@o{G_e3^LHK3Yc|_nx9uH8$-tK; z<}=n;UURS6+&|jg*}hH!suA3}U}?O4`iqQ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Is58f F_79%t0;>Q3 diff --git a/source/scripts/PRKF__00E_SE_DismantlePerk_03009D21.psc b/source/scripts/PRKF__00E_SE_DismantlePerk_03009D21.psc index 9353b105..e08b7587 100644 --- a/source/scripts/PRKF__00E_SE_DismantlePerk_03009D21.psc +++ b/source/scripts/PRKF__00E_SE_DismantlePerk_03009D21.psc @@ -1,24 +1,32 @@ ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment -;NEXT FRAGMENT INDEX 8 +;NEXT FRAGMENT INDEX 12 Scriptname PRKF__00E_SE_DismantlePerk_03009D21 Extends Perk Hidden +;BEGIN FRAGMENT Fragment_9 +Function Fragment_9(ObjectReference akTargetRef, Actor akActor) +;BEGIN CODE +; +;END CODE +EndFunction +;END FRAGMENT + ;BEGIN FRAGMENT Fragment_0 Function Fragment_0(ObjectReference akTargetRef, Actor akActor) ;BEGIN CODE - int iButton = _00E_Smelting_DismantlingMSG.Show() - - If iButton == 0 ; if the player wants to process ore into ingots - if ! akTargetRef.IsFurnitureInUse() - akTargetRef.SendModEvent("Enderal_StartCrafting") - endif - akTargetRef.Activate(akActor, true) - ElseIf iButton == 1 ; if the player wants to dismantle items back into crafting components, disable player controls - Game.DisablePlayerControls(true, true, true, true, true, true, true, true) - _00E_Dismantling_SmelterREF.SendModEvent("Enderal_StartDismantling") - _00E_Dismantling_SmelterREF.Activate(akActor) - Else - return - EndIf +if ! akTargetRef.IsFurnitureInUse() + akTargetRef.SendModEvent("Enderal_StartCrafting") +endif +akTargetRef.Activate(akActor, true) +;END CODE +EndFunction +;END FRAGMENT + +;BEGIN FRAGMENT Fragment_8 +Function Fragment_8(ObjectReference akTargetRef, Actor akActor) +;BEGIN CODE +Game.DisablePlayerControls(true, true, true, true, true, true, true, true) +_00E_Dismantling_SmelterREF.SendModEvent("Enderal_StartDismantling") +_00E_Dismantling_SmelterREF.Activate(akActor) ;END CODE EndFunction ;END FRAGMENT