distanceFromOrigin{}
Can be used to check the distance from the origin to the caster, trigger, 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 origin of the skill exists, in the deep java code.
If you don't specify to compare the distance between the origin and the caster, trigger, 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 origin, 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_Aurolaser_Exec: