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 152
    • Issues 152
    • 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
  • Dynamic Metaskills

Dynamic Metaskills · Changes

Page history
added delay workaround information authored Feb 25, 2025 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 21 additions and 1 deletion
+21 -1
  • Skills/Dynamic-Metaskills.md Skills/Dynamic-Metaskills.md +21 -1
  • No files found.
Skills/Dynamic-Metaskills.md
View page @ 8a4225e6
...@@ -91,7 +91,9 @@ As you already saw, the newly made metaskill is being stored inside a variable. ...@@ -91,7 +91,9 @@ As you already saw, the newly made metaskill is being stored inside a variable.
# Limitations # Limitations
Since this is not a planned feature, its implementations do have some problems. Since this is not a planned feature, its implementations do have some problems.
- Usage of other "skill" mechanics inline: when using "skill", "sudoskills" or other such skill mechanics directly inline will result in a console error, without the mechanic being executed. To solve this, it is necessary to continue using the vskill mechanic in place of these other ones. For the skill mechanic a simple replace will work, but to use a sudoskill you will need to make a vskill mechanic call a metaskill that executes said sudoskill mechanic itself - Usage of other "skill" mechanics inline: when using "skill", "sudoskills" or other such skill mechanics directly inline will result in a console error if used without delays, without the mechanic being executed. To solve this, it is necessary to do one of two things:
- continue using the vskill mechanic in place of these other ones. For the skill mechanic a simple replace will work, but to use a sudoskill you will need to make a vskill mechanic call a metaskill that executes said sudoskill mechanic itself
- use a delay of approximately 15 ticks before the execution of other metamechanics
```yaml ```yaml
ExampleWorkaround: ExampleWorkaround:
Skills: Skills:
...@@ -121,6 +123,24 @@ AnotherWorkaround: ...@@ -121,6 +123,24 @@ AnotherWorkaround:
``` ```
```yaml
DelayWorkaround:
Skills:
- setvariable{var=skill.test;type=string;value=message} @self
- vskill{
skill=[
- delay 15
- randomskill{
skills=[
- <skill.var.test>{m=1}
],
[
- <skill.var.test>{m=2}
]} @self
]} @self
```
<!-- LINKS --> <!-- LINKS -->
[variableskill mechanic]: /skills/mechanics/variableskill [variableskill mechanic]: /skills/mechanics/variableskill
[variableskill]: /skills/mechanics/variableskill [variableskill]: /skills/mechanics/variableskill
......
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information

Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs

MythicScribe MythicScribe - VSCode Extension

Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine

Skills
  • Mechanics
    • Mechanics by Tag
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables

Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework

Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops

Spawning
  • Spawners
  • Random Spawns

Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats

Other
  • Particles Types
  • Audience
  • Equipment Slots
  • Pins
Technical
  • Math
  • Item Matcher
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Advanced User Guides and Techniques