2021-10-05 22:15:58 +00:00
|
|
|
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()
|
2023-12-08 02:45:53 +00:00
|
|
|
playerRef.RestoreActorValue("Health", (playerRef.GetBaseActorValue("Health") * Mult / 100.0))
|
2021-10-05 22:15:58 +00:00
|
|
|
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
|