2021-10-05 22:59:59 +00:00
|
|
|
Scriptname _00E_ApparitionSkaraggStanceScript extends activemagiceffect
|
|
|
|
|
|
|
|
GlobalVariable Property _00E_Phasmalist_IsApparitionSummoned Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Actor Target
|
|
|
|
|
|
|
|
Float Property ATTACK_DAMAGE_MULT_BOOST = 0.2 AutoReadOnly
|
|
|
|
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
|
|
Target = akTarget
|
|
|
|
If Target == PlayerREF
|
|
|
|
Target = None ; Just in case
|
|
|
|
EndIf
|
|
|
|
SetBoost(ATTACK_DAMAGE_MULT_BOOST)
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
|
|
|
If _00E_Phasmalist_IsApparitionSummoned.GetValue() > 0.0 ; The apparition is not being unsummoned?
|
|
|
|
SetBoost(-ATTACK_DAMAGE_MULT_BOOST)
|
|
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Function SetBoost(Float fBoost)
|
|
|
|
If Target
|
2023-12-08 02:45:53 +00:00
|
|
|
Target.ModActorValue("AttackDamageMult", fBoost)
|
2021-10-05 22:59:59 +00:00
|
|
|
EndIf
|
|
|
|
EndFunction
|