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

This commit is contained in:
Eddoursul 2021-12-28 16:05:48 +01:00
parent 1d9e5465d5
commit 10483ecf9b
5 changed files with 20 additions and 18 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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

View File

@ -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