Removed _00E_Theriantrophist_BlockCraftingSC from all crafting stations and replaced it with a perk
This commit is contained in:
parent
1d9e5465d5
commit
10483ecf9b
BIN
Werewolf prevent crafting perk.esp
Normal file
BIN
Werewolf prevent crafting perk.esp
Normal file
Binary file not shown.
Binary file not shown.
BIN
scripts/prkf__00e_fs_werewolfprevent_0300146d.pex
Normal file
BIN
scripts/prkf__00e_fs_werewolfprevent_0300146d.pex
Normal file
Binary file not shown.
@ -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
|
||||
; Unlock activators, blocked by previous version of the script
|
||||
if IsActivationBlocked()
|
||||
BlockActivation(False)
|
||||
Activate(akActionRef, true)
|
||||
EndIf
|
||||
|
||||
bActivationBlocked = False
|
||||
EndIf
|
||||
Else
|
||||
Activate(akActionRef, true)
|
||||
EndIf
|
||||
endif
|
||||
EndEvent
|
||||
|
15
source/scripts/prkf__00e_fs_werewolfprevent_0300146d.psc
Normal file
15
source/scripts/prkf__00e_fs_werewolfprevent_0300146d.psc
Normal 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
|
Loading…
Reference in New Issue
Block a user