mm_cast_skill
Casts a MythicMobs skill from the player, targeting the victim or the player's current target.
Categories: meta
Required arguments
| Key(s) | Description | Type |
|---|
skill | The MythicMobs skill name to cast. | STRING |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
victim_to_player | Whether to target the casting player instead of the victim. Defaults to false. | BOOLEAN | false |
power | The skill power, a multiplier on the skill's damage mechanics (e.g. 1.5 deals 50% more damage). Also scales some other mechanics such as projectiles and leap, and is available in the skill as <skill.power>. Supports expressions. | EXPRESSION | 1 |
variables | A subsection of key-value pairs to set as skill variables, available in the skill as <skill.var.key>. Numeric values support expressions, anything else is passed as text. | MAP<STRING, STRING> | |
victim_as_trigger | Whether to use the victim as the skill's trigger entity, for @Trigger targeters. Defaults to false, which uses the casting player. | BOOLEAN | false |
target_location | Whether to pass the trigger location to the skill as a location target, for @TargetLocation targeters. Defaults to false. | BOOLEAN | false |
Trigger parameters required
Example
effects:
- id: mm_cast_skill
args:
skill: <value>
victim_to_player: true # ← Optional
power: 1.5 # ← Optional
variables: # ← Optional
<string>: <value>
victim_as_trigger: true # ← Optional
target_location: true # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |