distanceFromTrigger{}
Can be used to check the distance from the trigger to the caster or target of the skill.
Note that this condition must always go in the normal 'Conditions' section of the MythicSkill, even when checking the target or trigger. Unfortunately, this is where information on the trigger and target of the skill exist simultaneously, in the deep java code.
If there is no trigger, the condition fails automatically.
If you don't specify to compare the distance between the trigger and the caster or target; the comparison selects the target of the skill by default.
For specifying the range, you may use MythicMobs or vanilla range syntax:
2.3to10.5
2.3..10.5
<8
..8
When the skill has multiple targets, the condition will succeed if at least one of the targets is in the correct range.
This also means that if you are comparing the distance between targets and trigger, but the skill has no targets, the condition will fail because there was not a single target who succeeded.
This is a very complicated skill, but the point is showing how to use the condition. It uses all four different ways, checking for the caster, trigger, and target, to be the correct distances from the origin:
MSK_LightningBall_Exec: