Mechanic
cast
Casts a metaskill with various options
Configuration Fields (6)
| Name | Type | Default | Description |
|---|---|---|---|
| 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 | PlaceholderString | — | Display name of the spell in the cast bar |
| showCastBar cb | boolean | true | Whether to show the cast bar. Requires a compatible hologram plugin. |
| cancelOnMove com | boolean | false | Whether 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
Audiencecaster
The caster of the skill.
AudiencenonSelfWorld
All players in the world other than the caster
Audiencetracked
Players who's clients can render the caster
ConditionboundingBoxesOverlap
Tests the caster's bb overlaps the target's bb
Conditionchildren
Tests how many children the caster has
Conditiondistance
Whether the distance between the caster and target is within the given range
ConditiondistanceFromLocation
Tests if the caster is within a certain distance of a location.
ConditiondistanceFromPin
Tests if the caster is within a certain distance of a pin.
- Author:
- Ashijin
