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)DescriptionType
skillThe MythicMobs skill name to cast.STRING

Optional arguments

Key(s)DescriptionTypeDefault
victim_to_playerWhether to target the casting player instead of the victim. Defaults to false.BOOLEANfalse
powerThe 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.EXPRESSION1
variablesA 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_triggerWhether to use the victim as the skill's trigger entity, for @Trigger targeters. Defaults to false, which uses the casting player.BOOLEANfalse
target_locationWhether to pass the trigger location to the skill as a location target, for @TargetLocation targeters. Defaults to false.BOOLEANfalse

Trigger parameters required

  • PLAYER

  • VICTIM

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

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue