Mechanic

cast

Casts a metaskill with various options

Configuration Fields (6)

NameTypeDefaultDescription
onCast
oc
Optional<Skill>Skill to execute if the cast finishes successfully
onInterrupted
oi
Optional<Skill>Skill to execute if the cast is interrupted
onNoTarget
ont
Optional<Skill>Skill to execute if no target is found
skillname
sn
PlaceholderStringDisplay name of the spell in the cast bar
showCastBar
cb
booleantrueWhether to show the cast bar. Requires a compatible hologram plugin.
cancelOnMove
com
booleanfalseWhether to cancel the aura if the caster moves

Examples & Notes

Examples

myCoolMob:
  Type: ZOMBIE
  Skills:
    - cast{
          skillName="&aFrost Blast";
          duration=40;
          onCast=FrostBlast-Cast;
          onTick=FrostBlast-Tick;
          onInterrupted=FrostBlast-Interrupted;
          onNoTargets=FrostBlast-NoTargets;
          showCastBar=true
        } @target ~onTimer:100
# This will be cast once the duration has elapsed
FrostBlast-Cast:
  Skills:
  - damage{a=20}
  - message{m="MUHAHA, TAKE THAT!"}

# This will be cast while the main casting is still in progress
FrostBlast-Tick:
  Skills:
  - particle{p=end_rod;a=4;hs=1;vs=1} @selflocation{y=1}

# This will be cast if the aura is somehow removed
FrostBlast-Interrupted:
  Skills:
  - message{m="Tsk, you got me!"}

# This will be cast if the original target for the aura no longer exist
FrostBlast-NoTargets:
  Skills:
  - message{m="...Where has everyone gone to?"} @World

Universal Mechanic Options

Mentioned by

Author:
Ashijin
Community-maintained documentation for the Mythic plugin ecosystem.