New scripts

New scripts for commands and effects that use the new function
signatures and work with the new statuseffectcontainer
This commit is contained in:
Yogurt 2019-05-29 23:05:40 -07:00
parent 4f80023156
commit 00017468cc
129 changed files with 884 additions and 396 deletions

View file

@ -3,13 +3,15 @@ require("battleutils")
--Increases range of a single spell, no clue by how much, 25% is a random guess
--It isn't clear if it has an effect on the aoe portion of skills or just the normal range, i've seen people on the OF say both.
function onMagicStart(caster, effect, skill)
--It also increased height of skills
function onMagicCast(caster, effect, skill)
skill.range = skill.range * 1.25;
skill.rangeHeight = skill.rangeHeight * 1.25;
end;
--The effect falls off after the skill is finished, meaning if you start a cast and cancel, it shouldn't fall off.
function onCommandFinish(effect, owner, skill, actionContainer)
if action.commandType == CommandType.Spell then
actionContainer.AddAction(owner.statusEffects.RemoveStatusEffectForBattleAction(effect));
if skill.GetCommandType() == CommandType.Spell then
owner.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
end
end