enderalse/source/scripts/_00e_theriantrophist_blockcraftingsc.psc

27 lines
627 B
Plaintext

Scriptname _00E_Theriantrophist_BlockCraftingSC extends ObjectReference
Event OnInit()
BlockActivation(True)
EndEvent
Event OnActivate(ObjectReference akActionRef)
if akActionRef == PlayerREF
if PlayerREF.GetRace() == _00E_Theriantrophist_PlayerWerewolfRace
_00E_Theriantrophist_CantCraftMSG.Show()
elseif !((self as ObjectReference) as _00E_Playerhousing_Furniture)
Activate(akActionRef, true)
endif
else
Activate(akActionRef, true)
endif
EndEvent
Actor Property PlayerREF Auto
Message Property _00E_Theriantrophist_CantCraftMSG Auto
Race Property _00E_Theriantrophist_PlayerWerewolfRace Auto