I can't find this anywhere so I'm posting a request.
My idea is to create a spell like this one:
that instead of using only level and magic level like here, it uses also skill and weapon damage, like knight spells do.
Ideally the formula would be something like this:
min = level / 5 + magiclevel * 1.3 + skill * attack / 2
max = level / 5 + magiclevel * 1.4 + skill * attack / 2
So it'd be like overlapping level + mlvl like sorc spells and skill * attack like knight spells,
having a total dmg that combines all attributes.
Cheers and thanks in advance.
My idea is to create a spell like this one:
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
combat:setParameter(COMBAT_PARAM_USECHARGES, 1)
function onGetFormulaValues(player, level, maglevel)
min = -((level / 5) + (maglevel * 1.4))
max = -((level / 5) + (maglevel * 2.2))
return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var)
return combat:execute(creature, var)
end
that instead of using only level and magic level like here, it uses also skill and weapon damage, like knight spells do.
Ideally the formula would be something like this:
min = level / 5 + magiclevel * 1.3 + skill * attack / 2
max = level / 5 + magiclevel * 1.4 + skill * attack / 2
So it'd be like overlapping level + mlvl like sorc spells and skill * attack like knight spells,
having a total dmg that combines all attributes.
Cheers and thanks in advance.