spellParams.Vx and spellParams.Mx
Posted: Sun Feb 19, 2017 3:16 pm
Hello everyone! I'm new to the database stuff, and while I am not making a private server, I did have questions about how some of this worked. I have been looking over some of the spells and abilities and have been unable to decipher what spellParams actually affects. I cannot find a script called spellParams, and I cannot find any of the "V50", "M100" targets or what these numbers mean. I searched the wiki and the forums for spellParams, and can't seem to turn anything up. Additionally, I'm curious as to how the Lua scripts' parameters determine what element each spell is. I only see marginal differences in the spellParams.Vx values, with little change to the spellParams.Mx values. As far as I can tell, neither of these scripts are expressing what element the spells are.
Any insight would be very helpful! Thank you!
Blizzard.lua
Aero.lua
Any insight would be very helpful! Thank you!
Blizzard.lua
Code: Select all
function onSpellCast(caster, target, spell)
local spellParams = {};
spellParams.hasMultipleTargetReduction = false;
spellParams.resistBonus = 1.0;
spellParams.V0 = 70;
spellParams.V50 = 130;
spellParams.V100 = 180;
spellParams.V200 = 180;
spellParams.M0 = 1.2;
spellParams.M50 = 1;
spellParams.M100 = 0;
spellParams.M200 = 0;
Code: Select all
function onSpellCast(caster, target, spell)
local spellParams = {};
spellParams.hasMultipleTargetReduction = false;
spellParams.resistBonus = 1.0;
spellParams.V0 = 40;
spellParams.V50 = 120;
spellParams.V100 = 170;
spellParams.V200 = 170;
spellParams.M0 = 1.6;
spellParams.M50 = 1;
spellParams.M100 = 0;
spellParams.M200 = 0;