Hi! I have a question for someone if someone could write me briefly and help me, what he is responsible for and how to change the parameters. I mean the power of spells. I want to change so that the strength depends on the level, not on the skill or magic lvl. And that it gradually grows with everyone.
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLICE)
function onGetFormulaValues(player, level, magicLevel)
local min = (level / 5) + (magicLevel * 1.4) + 8
local max = (level / 5) + (magicLevel * 2.2) + 14
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
I have thickened what I consider the most important, or maybe it is not? What to change in the ruler so that the strength of the spell is counted from the level?
And what do I have to change to calculate more or less the value for a given level?
Thank you very much in advance!
And what do I have to change to calculate more or less the value for a given level?
Thank you very much in advance!