4
Fork 0

Removed _00E_Theriantrophist_BlockCraftingSC from all crafting stations and replaced it with a perk

master
Eddoursul 2 years ago
parent 1d9e5465d5
commit 10483ecf9b
  1. BIN
      Werewolf prevent crafting perk.esp
  2. BIN
      scripts/_00e_theriantrophist_blockcraftingsc.pex
  3. BIN
      scripts/prkf__00e_fs_werewolfprevent_0300146d.pex
  4. 23
      source/scripts/_00e_theriantrophist_blockcraftingsc.psc
  5. 15
      source/scripts/prkf__00e_fs_werewolfprevent_0300146d.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

@ -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
Loading…
Cancel
Save