Dreameater no SKSE
This commit is contained in:
parent
fa97be05da
commit
7438de4e64
BIN
Dreameater update.esp
Normal file
BIN
Dreameater update.esp
Normal file
Binary file not shown.
Binary file not shown.
@ -1,11 +1,27 @@
|
||||
Scriptname _00E_FS_DreameaterSC extends activemagiceffect
|
||||
{Dreameater bonus damage}
|
||||
|
||||
;=====================================================================================
|
||||
; EVENTS
|
||||
;=====================================================================================
|
||||
|
||||
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||
Float fMagnitude = Self.GetMagnitude()
|
||||
event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||
if SKSE.GetVersion()
|
||||
fMagnitude = GetMagnitude()
|
||||
endif
|
||||
endevent
|
||||
|
||||
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
||||
if ! fMagnitude
|
||||
fMagnitude = - akTarget.GetActorValue(sActorValue)
|
||||
endif
|
||||
|
||||
if akTarget.IsDead()
|
||||
return
|
||||
endif
|
||||
|
||||
akTarget.RestoreActorValue(sActorValue, fMagnitude)
|
||||
|
||||
Float fBonusDamage = fMagnitude * akCaster.GetActorValue("Illusion") / 3.0
|
||||
If fBonusDamage < fMagnitude
|
||||
fBonusDamage = fMagnitude
|
||||
@ -30,7 +46,6 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||
fBonusDamage = fBonusDamage * (100.0 - fMagicResist) / 100.0
|
||||
EndIf
|
||||
|
||||
|
||||
akTarget.DamageActorValue("Health", fBonusDamage)
|
||||
|
||||
If akTarget.HasMagicEffect(_00E_FS_PsychosisWeaknessVisualME)
|
||||
@ -59,6 +74,9 @@ EndFunction
|
||||
; PROPERTIES
|
||||
;=====================================================================================
|
||||
|
||||
float fMagnitude
|
||||
String Property sActorValue = "FavorActive" Auto
|
||||
|
||||
Actor Property PlayerREF Auto
|
||||
|
||||
Perk Property _00E_Class_Infiltrator_P03_B_HeartShot Auto ; 2.5
|
||||
|
Loading…
Reference in New Issue
Block a user