enderalse/scripts/source/_00e_qyraneanfireflowerscript.psc

30 lines
615 B
Plaintext

Scriptname _00E_QyraneanFireflowerScript extends ObjectReference
Import math
Event OnInit()
;EnchArmorFireFXS.Play(Self)
EndEvent
Event OnActivate(ObjectReference akActionRef)
if akActionRef == PlayerREF && Used == 0
_00E_FireflowerEatSound.Play(PlayerREF)
EnchArmorFireFXS.Stop(Self)
PlayerREF.RestoreActorValue("Stamina", (PlayerREF.GetActorValue("Stamina")*CurePercentage))
Used = 1
Else
Return
EndIf
EndEvent
float CureAmount
int Used = 0
float Property CurePercentage Auto
Actor Property PlayerREF Auto
EffectShader Property EnchArmorFireFXS Auto
Sound Property _00E_FireflowerEatSound Auto