|
Spells are just special Mythic skills that are castable by players.
|
|
Spells are just special [Mythic metaskills](/../../../MythicMobs/-/wikis/Skills/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 skill into a spell unlocks new options you can use to control how the spell is cast.
|
|
|
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
# Making a Spell
|
|
# Making a Spell
|
|
Turning a regular skill into a spell is simple and can be done with any existing Mythic skill - it just requires adding the option `Spell: true` to the skill. It will then be registered as a spell after the next reload and all of the extra casting options will be unlocked.
|
|
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 Attributes
|
|
## Spell Options
|
|
Spells are just Mythic Skills with extra options. All regular Mythic skill options are also applicable!
|
|
Spells are just Mythic Skills with extra options. All regular Mythic metaskill options are also applicable!
|
|
|
|
|
|
| Functional Options | Description |
|
|
### Functional Options
|
|
|
|
| Option | Description |
|
|
|------------------------------|-------------------------------------------------------------------------|
|
|
|------------------------------|-------------------------------------------------------------------------|
|
|
| Spell: true | Turns the skill into a spell and allows players to learn it. |
|
|
| 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. |
|
|
| LearnConditions: [conditions]| A list of conditions that must be met to learn the spell. |
|
|
| Trigger: [trigger] | What triggers the spell. Defaults to ~onUse |
|
|
| 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. |
|
|
| 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` |
|
|
| Cost: [reagents] | A list of reagents this spell costs to cast. |
|
|
| 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 |
|
|
| 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` |
|
|
|
|
| Binding: [integer] | The slot to which the spell should be binded. Defaults to `-1` |
|
|
|
|
|
|
| Aesthetic Options | Description |
|
|
### Aesthetic Options
|
|
|
|
| Option | Description |
|
|
|------------------------------|-------------------------------------------------------------------------|
|
|
|------------------------------|-------------------------------------------------------------------------|
|
|
| Display: [name] | The display name of the spell |
|
|
| Display: [name] | The display name of the spell |
|
|
| Description: [list] | A description of what the spell does for GUIs and info commands |
|
|
| Description: [list] | A description of what the spell does for GUIs and info commands |
|
|
| Icon.Material: [material] | |
|
|
| Icon.Material: [material] | |
|
|
| Icon.Model: [material] | |
|
|
| Icon.Model: [material] | |
|
|
|
|
| Icon.Generation | [Crucible's Generation Option](/../../../mythiccrucible/-/wikis/ResourcePack-Generator#item-configurations) |
|
|
| KillMessage: [list] | |
|
|
| KillMessage: [list] | |
|
|
|
|
|
|
# Examples
|
|
# Examples
|
|
|
|
|
|
```
|
|
```yaml
|
|
MAGIC_MISSILE:
|
|
MAGIC_MISSILE:
|
|
Cooldown: 2
|
|
Cooldown: 2
|
|
Display: 'Magic Missile'
|
|
Display: 'Magic Missile'
|
... | @@ -39,12 +47,12 @@ MAGIC_MISSILE: |
... | @@ -39,12 +47,12 @@ MAGIC_MISSILE: |
|
Learnable: true
|
|
Learnable: true
|
|
LearnConditions:
|
|
LearnConditions:
|
|
- archetype{group=class;type=wizard}
|
|
- archetype{group=class;type=wizard}
|
|
Targeter: target
|
|
Targeter: @target
|
|
Trigger: ~onUse
|
|
Trigger: ~onUse
|
|
Cost:
|
|
Cost:
|
|
- mana 40
|
|
- mana 40
|
|
TargetConditions:
|
|
TargetConditions:
|
|
- distance <20
|
|
- distance{d=<20} true
|
|
Skills:
|
|
Skills:
|
|
- missile{}
|
|
- missile{}
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |