59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
|
Scriptname _00E_Heilpflanze extends ObjectReference
|
||
|
|
||
|
|
||
|
;=====================================================================================
|
||
|
; EVENTS
|
||
|
;=====================================================================================
|
||
|
|
||
|
Event OnLoad()
|
||
|
|
||
|
If Count == 0
|
||
|
_00E_HeilpflanzeShader.Play(Self)
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Event OnActivate(ObjectReference akActionRef)
|
||
|
|
||
|
Actor playerRef = Game.GetPlayer()
|
||
|
|
||
|
If (akActionRef != playerRef)
|
||
|
Return
|
||
|
EndIf
|
||
|
|
||
|
If Count == 0
|
||
|
|
||
|
Count = 2 ; Don't do _00E_Heilpflanze_sJuiceDepleted and stuff while the player being healed
|
||
|
|
||
|
_00E_Heilpflanze_sJuiceHealsPlayer.Show()
|
||
|
playerRef.RestoreAV("Health", (playerRef.GetBaseAV("Health") * Mult / 100.0))
|
||
|
MAGRestorationFFFire.Play(playerRef)
|
||
|
_00E_HeilpflanzeShader.Stop(Self)
|
||
|
_00E_HealingIsm.Apply()
|
||
|
|
||
|
Count = 1
|
||
|
|
||
|
ElseIf Count != 2
|
||
|
|
||
|
_00E_Heilpflanze_sJuiceDepleted.Show()
|
||
|
_00E_HealingRootUsedUpM.Play(playerRef)
|
||
|
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
|
||
|
;=====================================================================================
|
||
|
; PROPERTIES
|
||
|
;=====================================================================================
|
||
|
|
||
|
Message Property _00E_Heilpflanze_sJuiceDepleted Auto
|
||
|
Message Property _00E_Heilpflanze_sJuiceHealsPlayer Auto
|
||
|
|
||
|
Int Count
|
||
|
Float Property Mult Auto
|
||
|
ImagespaceModifier Property _00E_HealingIsm Auto
|
||
|
EffectShader Property _00E_HeilpflanzeShader Auto
|
||
|
Sound Property MAGRestorationFFFire Auto
|
||
|
Sound Property _00E_HealingRootUsedUpM Auto
|