enderalse/scripts/source/_00e_theriantrophist_chymikum_hitspel.psc

29 lines
845 B
Plaintext

Scriptname _00E_Theriantrophist_Chymikum_HitSpel extends _00E_Theriantrophist_Chymikum
;Spell Property HitSpell Auto
Enchantment Property _00E_Theriantrophist_ClawsEnchantement Auto
String Property ChymikumType = "Fire" Auto
{Valid types are: Fire, Frost, Shock. Default ist FIRE.}
Function OnPlayerLoadGame()
_AdjustPower()
EndFunction
Function _AdjustPower()
if ChymikumType == "Fire"
_00E_Theriantrophist_ClawsEnchantement.SetNthEffectMagnitude(1, Self.GetMagnitude())
elseif ChymikumType == "Frost"
_00E_Theriantrophist_ClawsEnchantement.SetNthEffectMagnitude(2, Self.GetMagnitude())
else
_00E_Theriantrophist_ClawsEnchantement.SetNthEffectMagnitude(3, Self.GetMagnitude())
endif
EndFunction
Function OnChymikumEffectStart(Actor target)
_AdjustPower()
EndFunction
Function OnChymikumEffectFinish(Actor target)
Endfunction