Prevent grave digging in werewolf form

This commit is contained in:
Eddoursul 2024-01-25 02:39:16 +01:00
parent ead0fa21b8
commit f8ec1c0874
2 changed files with 18 additions and 6 deletions

View File

@ -6,14 +6,26 @@ Import Utility
; EVENTS
;=====================================================================================
Event OnInit()
Self.BlockActivation()
endEvent
Auto State Waiting
Event OnLoad()
Self.BlockActivation()
endEvent
Event OnActivate (ObjectReference akActionRef)
if akActionRef != PlayerREF
return
endif
if PlayerREF.GetRace() == Game.GetFormFromFile(0x2EE47, "Enderal - Forgotten Stories.esm") as Race
Message werewolfMessage = Game.GetFormFromFile(0x2F032, "Enderal - Forgotten Stories.esm") as Message
if werewolfMessage
werewolfMessage.Show()
return
endif
endif
If akActionRef.GetItemCount(ShovelKeyword) > 0
TreasureDigger = akActionRef as Actor
if TreasureDigger.IsInCombat()
@ -110,4 +122,4 @@ Message Property _00E_TreasureMarkerScript_sShovelNeeded Auto
Keyword Property ShovelKeyword Auto
Actor Property PlayerREF Auto
Idle Property DefaultSheathe Auto
Idle Property DefaultSheathe Auto