The dismantle perk message uses standard activate entrypoint instead of scripted message
This commit is contained in:
parent
33bf342ec0
commit
ba2f87de52
BIN
Dismatle perk adds activate options.esp
Normal file
BIN
Dismatle perk adds activate options.esp
Normal file
Binary file not shown.
Binary file not shown.
@ -1,24 +1,32 @@
|
|||||||
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
|
;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
|
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
|
;BEGIN FRAGMENT Fragment_0
|
||||||
Function Fragment_0(ObjectReference akTargetRef, Actor akActor)
|
Function Fragment_0(ObjectReference akTargetRef, Actor akActor)
|
||||||
;BEGIN CODE
|
;BEGIN CODE
|
||||||
int iButton = _00E_Smelting_DismantlingMSG.Show()
|
if ! akTargetRef.IsFurnitureInUse()
|
||||||
|
akTargetRef.SendModEvent("Enderal_StartCrafting")
|
||||||
If iButton == 0 ; if the player wants to process ore into ingots
|
endif
|
||||||
if ! akTargetRef.IsFurnitureInUse()
|
akTargetRef.Activate(akActor, true)
|
||||||
akTargetRef.SendModEvent("Enderal_StartCrafting")
|
;END CODE
|
||||||
endif
|
EndFunction
|
||||||
akTargetRef.Activate(akActor, true)
|
;END FRAGMENT
|
||||||
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)
|
;BEGIN FRAGMENT Fragment_8
|
||||||
_00E_Dismantling_SmelterREF.SendModEvent("Enderal_StartDismantling")
|
Function Fragment_8(ObjectReference akTargetRef, Actor akActor)
|
||||||
_00E_Dismantling_SmelterREF.Activate(akActor)
|
;BEGIN CODE
|
||||||
Else
|
Game.DisablePlayerControls(true, true, true, true, true, true, true, true)
|
||||||
return
|
_00E_Dismantling_SmelterREF.SendModEvent("Enderal_StartDismantling")
|
||||||
EndIf
|
_00E_Dismantling_SmelterREF.Activate(akActor)
|
||||||
;END CODE
|
;END CODE
|
||||||
EndFunction
|
EndFunction
|
||||||
;END FRAGMENT
|
;END FRAGMENT
|
||||||
|
Loading…
Reference in New Issue
Block a user