Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 146
    • Issues 146
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Skills
    • Mechanics
  • skill

skill · Changes

Page history
added the OnCooldownSkill option and formatted the code with yaml highlighting authored Nov 29, 2022 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 49 additions and 24 deletions
+49 -24
  • skills/mechanics/skill.md skills/mechanics/skill.md +49 -24
  • No files found.
skills/mechanics/skill.md
View page @ 6ce9c30a
...@@ -7,12 +7,12 @@ targeter is specified. ...@@ -7,12 +7,12 @@ targeter is specified.
Syntax Syntax
------ ------
```yaml
Skills: Skills:
- skill{skill=AnotherSkill} @Target ~onAttack - skill{skill=AnotherSkill} @Target ~onAttack
- skill{s=AnotherSkill} @Trigger ~onSpawn - skill{s=AnotherSkill} @Trigger ~onSpawn
- skill:OtherSkill @Trigger ~onDeath - skill:OtherSkill @Trigger ~onDeath
```
The attribute "sync=true" will be inherited by any sub-skills and cannot The attribute "sync=true" will be inherited by any sub-skills and cannot
be set to *false* later in a skill-tree. be set to *false* later in a skill-tree.
...@@ -27,7 +27,8 @@ Cooldown ...@@ -27,7 +27,8 @@ Cooldown
Skill configurations are capable of utilizing cooldown Skill configurations are capable of utilizing cooldown
Add cooldown to your skills like this: Add cooldown to your skills like this:
internal_skillname: ```yaml
internal_skillname:
Cooldown: <seconds> Cooldown: <seconds>
Conditions: Conditions:
- condition - condition
...@@ -36,13 +37,36 @@ Add cooldown to your skills like this: ...@@ -36,13 +37,36 @@ Add cooldown to your skills like this:
- mechanic{} - mechanic{}
- ... - ...
```
Note that this only applies for skill configurations that are saved as Note that this only applies for skill configurations that are saved as
skill-files in */MythicMobs/Skills*. Cooldown can't be added to skill-files in */MythicMobs/Skills*. Cooldown can't be added to
mechanics called directly in mob configuration files. mechanics called directly in mob configuration files.
OnCooldownSkill
---------------
If the metaskill is triggered while on cooldown, this option allows for it to launch another metaskill instead
```yaml
internal_skillname:
Cooldown: <seconds>
OnCooldownSkill: internal_fallbackskill_name
Skills:
- mechanic{}
- ...
internal_fallbackskill_name:
Skills:
- mechanic{}
- ...
```
Note that the skill you set as the value of OnCooldownSkill can itself have a OnCooldownSkill option.
Examples Examples
-------- --------
```yaml
Skills: Skills:
- skill{s=AnotherSkill;sync=true} @Target ~onAttack - skill{s=AnotherSkill;sync=true} @Target ~onAttack
- skill{s=ice_bolt;sync=true} @Target ~onTimer:100 - skill{s=ice_bolt;sync=true} @Target ~onTimer:100
...@@ -53,3 +77,4 @@ Examples ...@@ -53,3 +77,4 @@ Examples
skill=leafs; skill=leafs;
sync=true sync=true
} }
```
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples