|
|
|
@ -6,14 +6,26 @@ Import Utility |
|
|
|
|
; EVENTS |
|
|
|
|
;===================================================================================== |
|
|
|
|
|
|
|
|
|
Auto State Waiting |
|
|
|
|
|
|
|
|
|
Event OnLoad() |
|
|
|
|
Event OnInit() |
|
|
|
|
Self.BlockActivation() |
|
|
|
|
endEvent |
|
|
|
|
|
|
|
|
|
Auto State Waiting |
|
|
|
|
|
|
|
|
|
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() |
|
|
|
|