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 132
    • Issues 132
    • 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
  • SkillTrees

Last edited by SkyKiller6363 Jan 28, 2025
Page history

SkillTrees

SkillTrees are an implicit feature of Mythic and, while they cannot be directly invoked like Metaskills or other features, play just as important a role.

SkillTrees are created each time a mechanic is fired by a trigger, and it is the place where skill scoped variables are stored and inside which metaskills exist

  • SkillTree Structure
    • Skill Scoped Variables
    • Event Data
    • MetaSkills
      • Caster
      • Target
      • Trigger
      • Origin
      • Skill Parameters

SkillTree Structure

stateDiagram-v2
    state SkillTree {
        SkillScopedVariables
        EventData
        state MetaSkills {
            state MetaSkill {
                MetaSkillInfo: MetaSkill Info
                state MetaSkillInfo {
                    Caster
                    Targets
                    Trigger
                    Origin
                    SkillParameters
                }
                state Mechanics {
                    Mechanic1 Mechanic2 Mechanic3
                }
            }
            
        }
    }

Skill Scoped Variables

Since they exist in the skilltree itself, skill-scoped variables can be accessed and modified by any metaskill in the skilltree from the moment they are created, regardless of which metaskill created them

Event Data

The skilltree always knows which event triggered it, and allows the cancelevent mechanic to be used in any of the metaskill it calls in order to cancel it, as long as this occurs in a synched manner

MetaSkills

Each Metaskill that is being called in the SkillTree has its own set of data regarding different elements. Normally, the value of those elements is copied over from the calling metaskill unless overridden.
Those elements are:

Caster

The entity casting the metaskill.

  • Can be changed via the use of the sudoskill mechanic

Target

It is the Inherited Target of the metaskill

Trigger

Is first set as the entity that triggered the SkillTree initially, and one can fetch this entity via the @trigger targeter or other similar targeters. Depending on the ~Trigger used, a @trigger may not exist.

  • The Trigger can be changed via the use of the sudoskill mechanic's casterastrigger attribute, which will make the called metaskill have, as the Trigger, the Caster of the original metaskill

Origin

It's the @origin of the metaskill. By default, it is the position of the Caster.

  • Can be set via the origin universal attribute
  • It is automatically set in mechanics such as projectile

Skill Parameters

The Skill Parameters of the metaskill. Please note that, contrary to Skill Scoped Variables, they do not exist on the skilltree itself.

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
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Advanced User Guides and Techniques