Taurus
Texass
I started to think about how terrible druid spells look today, and I'd really like to spruce them up a bit.
I was interested in how I can add another effect to the spell. The damage should not change, it should simply show two effects simultaneously when cast.
TFS 1.3 (OTX)
Here is current spell script:
Thank you in advance for your help.
I was interested in how I can add another effect to the spell. The damage should not change, it should simply show two effects simultaneously when cast.
TFS 1.3 (OTX)
Here is current spell script:
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_STONES) -- I'd like to also use "CONST_ME_BIGPLANTS"
combat:setArea(createCombatArea(AREA_CROSS6X6))
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * 3) + 32
local max = (level / 5) + (maglevel * 9) + 40
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var)
return combat:execute(creature, var)
end
Thank you in advance for your help.