diff --git a/Werewolf prevent crafting perk.esp b/Werewolf prevent crafting perk.esp new file mode 100644 index 00000000..b6700583 Binary files /dev/null and b/Werewolf prevent crafting perk.esp differ diff --git a/scripts/_00e_theriantrophist_blockcraftingsc.pex b/scripts/_00e_theriantrophist_blockcraftingsc.pex index 5c1bcdfa..18229200 100644 Binary files a/scripts/_00e_theriantrophist_blockcraftingsc.pex and b/scripts/_00e_theriantrophist_blockcraftingsc.pex differ diff --git a/scripts/prkf__00e_fs_werewolfprevent_0300146d.pex b/scripts/prkf__00e_fs_werewolfprevent_0300146d.pex new file mode 100644 index 00000000..84a5742b Binary files /dev/null and b/scripts/prkf__00e_fs_werewolfprevent_0300146d.pex differ diff --git a/source/scripts/_00e_theriantrophist_blockcraftingsc.psc b/source/scripts/_00e_theriantrophist_blockcraftingsc.psc index fba5a5af..e327f187 100644 --- a/source/scripts/_00e_theriantrophist_blockcraftingsc.psc +++ b/source/scripts/_00e_theriantrophist_blockcraftingsc.psc @@ -6,25 +6,12 @@ Race Property _00E_Theriantrophist_PlayerWerewolfRace Auto Bool bActivationBlocked = False - -Event OnInit() - BlockActivation(True) -EndEvent +; This script is obsolete since 2.0.12 and has been replaced with a perk Event OnActivate(ObjectReference akActionRef) - If akActionRef == PlayerREF - If _00E_PlayerhousingMaster.ReferenceCanBeActivated(Self) && bActivationBlocked == False - bActivationBlocked = True - - If PlayerREF.GetRace() == _00E_Theriantrophist_PlayerWerewolfRace - _00E_Theriantrophist_CantCraftMSG.Show() - Else - Activate(akActionRef, true) - EndIf - - bActivationBlocked = False - EndIf - Else + ; Unlock activators, blocked by previous version of the script + if IsActivationBlocked() + BlockActivation(False) Activate(akActionRef, true) - EndIf + endif EndEvent diff --git a/source/scripts/prkf__00e_fs_werewolfprevent_0300146d.psc b/source/scripts/prkf__00e_fs_werewolfprevent_0300146d.psc new file mode 100644 index 00000000..54f9d540 --- /dev/null +++ b/source/scripts/prkf__00e_fs_werewolfprevent_0300146d.psc @@ -0,0 +1,15 @@ +;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment +;NEXT FRAGMENT INDEX 6 +Scriptname PRKF__00E_FS_WerewolfPrevent_0300146D Extends Perk Hidden + +;BEGIN FRAGMENT Fragment_0 +Function Fragment_0(ObjectReference akTargetRef, Actor akActor) +;BEGIN CODE +_00E_Theriantrophist_CantCraftMSG.Show() +;END CODE +EndFunction +;END FRAGMENT + +;END FRAGMENT CODE - Do not edit anything between this and the begin comment + +Message Property _00E_Theriantrophist_CantCraftMSG Auto