liqeen
Active Member
Hello I got a problem with script, I just don't know how to add another visual effect with damage same as it is in forumla below
Thats my code, currently the spell is doing 3X3 with some modifications as u can see by the area in script.
I want to add another combat area, for example 4x4 with mortarea inside the bigclouds effect. How do I add it into this script?
If somebody does not understood me I attach a gif below (thats the thing I want to do)
Code:
arr = {
{0, 0, 1, 0, 0},
{0, 1, 1, 1, 0},
{1, 1, 3, 1, 1},
{0, 1, 1, 1, 0},
{0, 0, 1, 0, 0},
}
local area = createCombatArea(arr)
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_BIGCLOUDS)
combat:setParameter(arr, COMBAT_PARAM_EFFECT, CONST_ME_BIGCLOUDS)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setArea(area)
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * 4.5) + 20
local max = (level / 5) + (maglevel * 7.6) + 48
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var)
if creature:getStorageValue(warPrivate_UE) > 0 then
return false
else
return combat:execute(creature, var)
end
end
I want to add another combat area, for example 4x4 with mortarea inside the bigclouds effect. How do I add it into this script?
If somebody does not understood me I attach a gif below (thats the thing I want to do)
Attachments
-
gif.gif517 KB · Views: 25 · VirusTotal