Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicRPG MythicRPG
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 34
    • Issues 34
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicRPGMythicRPG
  • Wiki
  • Spells

Last edited by Lxlp Oct 29, 2024
Page history

Spells

Spells are just special Mythic metaskills that are castable by players.

Making a skill into a spell unlocks new options you can use to control how the spell is cast.

  • Making a Spell
    • Spell Options
      • Functional Options
      • Aesthetic Options
  • Examples

Making a Spell

Turning a regular skill into a spell is simple and can be done with any existing Mythic metaskill - it just requires adding the option Spell: true to the metaskill. It will then be registered as a spell after the next reload and all of the extra casting options will be unlocked.

Spell Options

Spells are just Mythic Skills with extra options. All regular Mythic metaskill options are also applicable!

Functional Options

Option Description
Spell: true Turns the skill into a spell and allows players to learn it if set to true
LearnConditions: [conditions] A list of conditions that must be met to learn the spell.
Trigger: [trigger] What triggers the spell. Defaults to ~onCombat
Targeter: [targeter] The main targeter for the spell. If this is set the spell will fail to cast and not consume resources if a valid target isn't found. Defaults to @self.
Remember to put the targeter between string delimiters such as " or ' so that the yaml file can parse correctly
Cost: [reagents] A list of reagents this spell costs to cast.
Global: true Makes it a global spell, causing it to be automatically applied to all players
Upgrades: [integer] The maximum level the spell can reach. Defaults to 1
Bindable: [true/false] Whether the slot from which this spell can be cast can be binded. Defaults to false

Once binded, the ~onUse trigger is needed to cast the skill

Aesthetic Options

Option Description
Display: [name] The display name of the spell
Description: [list] A description of what the spell does for GUIs and info commands
Icon.Material: [material]
Icon.Model: [material]
Icon.Generation Crucible's Generation Option
KillMessage: [list]

Examples

MAGIC_MISSILE:
  Cooldown: 2
  Display: 'Magic Missile'
  Description:
  - 'Shoots a magic missile'
  Icon:
    Material: NETHER_STAR
    Model: 20
  Learnable: true
  LearnConditions:
  - archetype{group=class;type=wizard}
  Targeter: "@target"
  Trigger: ~onUse
  Cost:
  - mana 40
  TargetConditions: 
  - distance{d=<20} true
  Skills:
  - missile{}
Clone repository

MythicRPG

  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Spells
    • Learning
    • Casting
    • Reagents
  • Archetypes
    • Leveling
    • Talents
    • Professions
    • Boosters
  • Currencies
  • Custom Commands
  • Custom Menus
  • Waypoints
Mechanics
  • Mechanics
  • Targeters
  • Triggers
  • Conditions
Placeholders
  • Placeholders