enderalse/scripts/source/_00e_fs_nqr03_playerhearthuntsc.psc

37 lines
1.2 KiB
Plaintext

Scriptname _00E_FS_NQR03_PlayerHeartHuntSC extends activemagiceffect
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnEffectStart(Actor akTarget, Actor akCaster)
Debug.Messagebox("_00E_FS_NQR03_PlayerHeartHuntSC spell has started!")
EndEvent
Event OnCombatStateChanged(Actor akTarget, int aeCombatState)
Debug.Messagebox("_00E_FS_NQR03_PlayerHeartHuntSC triggered!")
if !FS_NQR03.IsCompleted() && aeCombatState == 1
If HeadPartsHuman.HasForm(akTarget.GetActorBase().GetRace()) && akTarget.GetItemCount(_00E_FS_NQR03_HumanHeartFresh) < 1
akTarget.AddItem(_00E_FS_NQR03_HumanHeartFresh, 1)
EndIf
Endif
endEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
Formlist Property HeadPartsHuman Auto
Quest Property FS_NQR03 Auto
Ingredient Property _00E_FS_NQR03_HumanHeartFresh Auto