1
Fork 0

Prevent grave digging in werewolf form

development
Eddoursul 4 months ago
parent ead0fa21b8
commit f8ec1c0874
  1. BIN
      scripts/_00e_treasuremarkerscript.pex
  2. 20
      source/scripts/_00e_treasuremarkerscript.psc

@ -6,14 +6,26 @@ Import Utility
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================
Auto State Waiting Event OnInit()
Event OnLoad()
Self.BlockActivation() Self.BlockActivation()
endEvent endEvent
Auto State Waiting
Event OnActivate (ObjectReference akActionRef) 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 If akActionRef.GetItemCount(ShovelKeyword) > 0
TreasureDigger = akActionRef as Actor TreasureDigger = akActionRef as Actor
if TreasureDigger.IsInCombat() if TreasureDigger.IsInCombat()

Loading…
Cancel
Save