diff --git a/Dismatle perk adds activate options.esp b/Dismatle perk adds activate options.esp new file mode 100644 index 00000000..48508eca Binary files /dev/null and b/Dismatle perk adds activate options.esp differ diff --git a/scripts/PRKF__00E_SE_DismantlePerk_03009D21.pex b/scripts/PRKF__00E_SE_DismantlePerk_03009D21.pex index 5fff4389..ca850ee8 100644 Binary files a/scripts/PRKF__00E_SE_DismantlePerk_03009D21.pex and b/scripts/PRKF__00E_SE_DismantlePerk_03009D21.pex differ 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