Greets everyone!
I am working on some spell balances and found a weird error that seem to affect my spells, or I might express it as not affecting them.
Here is the normal Ultimate Healing spell (exura vita):
Whatever I change in these lines, nothing changes:
min = ((level / 5) + (maglevel * 6.8) + 42)
max = ((level / 5) + (maglevel * 12.9) + 90)
(I tried lvl 1 and 10, tried maglvl * 200 and tried to change the + to 200.
My character ALWAYS heal for 152 hp no matter what I do. I can't figure out why and can only come to think of some values not being calculated for some reason. I seem to have the same issue at some of my attack spells.
I am using TFS 1.2.
Does anyone have a clue? Thanks in advance.
Best Regards,
Eldin
I am working on some spell balances and found a weird error that seem to affect my spells, or I might express it as not affecting them.
Here is the normal Ultimate Healing spell (exura vita):
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(player, level, maglevel)
min = ((level / 5) + (maglevel * 6.8) + 42)
max = ((level / 5) + (maglevel * 12.9) + 90)
return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var)
return combat:execute(creature, var)
end
Whatever I change in these lines, nothing changes:
min = ((level / 5) + (maglevel * 6.8) + 42)
max = ((level / 5) + (maglevel * 12.9) + 90)
(I tried lvl 1 and 10, tried maglvl * 200 and tried to change the + to 200.
My character ALWAYS heal for 152 hp no matter what I do. I can't figure out why and can only come to think of some values not being calculated for some reason. I seem to have the same issue at some of my attack spells.
I am using TFS 1.2.
Does anyone have a clue? Thanks in advance.
Best Regards,
Eldin