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 145
    • Issues 145
    • 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
  • variableskill

variableskill · Changes

Page history
added executeafterdeath attributes and mechanic's aliases authored Mar 02, 2024 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 18 additions and 14 deletions
+18 -14
  • skills/mechanics/variableskill.md skills/mechanics/variableskill.md +18 -14
  • No files found.
skills/mechanics/variableskill.md
View page @ a0efaffc
Mechanic: VariableSkill ## Description
=============== Executes another meta-skill like the [Skill mechanic](skills/mechanics/skill), but allows for placeholders inside the skill attribute.
Executes another meta-skill like the [Skill mechanic](skills/mechanics/skill), but allows for placeholders inside the skill name
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.
## Attributes
| Attribute | Shorthand | Description | Default | | Attribute | Shorthand | Description | Default |
|-----------|-----------|---------------------------------------------------------------------|---------| |-----------|-----------|---------------------------------------------------------------------|---------|
| skill | s | The metaskill to be executed. Accepts [Placeholders](Skills/Placeholders). | | | skill | s | The metaskill to be executed. Accepts [Placeholders](Skills/Placeholders) | |
| forcesync | sync | Whether to force the skill to be run synchroniously with Minecraft. | false | | forcesync | sync | Whether to force the skill to be run synchroniously with Minecraft | false |
| branch | b, fork, f| Whether the called metaskill's skilltree should [branch](skills/mechanics/skill#branch-attribute) off from the skilltree of the calling mechanic | false |
| executeafterdeath | continueafterdeath | Whether the metaskill should be able to be called after the caster's death | false |
Examples ## Examples
--------
```yaml ```yaml
ExampleSkill: ExampleSkill:
Skills: Skills:
...@@ -32,7 +31,7 @@ ExampleSkill_3: ...@@ -32,7 +31,7 @@ ExampleSkill_3:
``` ```
In the example, the `ExampleSkill` metaskill, once triggered, will execute a skill whose name is composed of `ExampleSkill_` and a randomly generated number between 1 and 3. In the example, the `ExampleSkill` metaskill, once triggered, will execute a skill whose name is composed of `ExampleSkill_` and a randomly generated number between 1 and 3.
# ##
```yaml ```yaml
Example_StanceSkill: Example_StanceSkill:
...@@ -41,7 +40,7 @@ Example_StanceSkill: ...@@ -41,7 +40,7 @@ Example_StanceSkill:
``` ```
In this example, the VariableSkill is being used to quickly create some stance-based skills without the need to use any stance conditions and the like In this example, the VariableSkill is being used to quickly create some stance-based skills without the need to use any stance conditions and the like
# ##
```yaml ```yaml
Example_VariablePlaceholder: Example_VariablePlaceholder:
...@@ -49,3 +48,8 @@ Example_VariablePlaceholder: ...@@ -49,3 +48,8 @@ Example_VariablePlaceholder:
- vskill{s=Fireball_<skill.var.fireballtype>} @self - vskill{s=Fireball_<skill.var.fireballtype>} @self
``` ```
In this example, the VariableSkill mechanic will execute a metaskill whose name depends on some skill-scoped variables that has been set earlier on In this example, the VariableSkill mechanic will execute a metaskill whose name depends on some skill-scoped variables that has been set earlier on
## Aliases
- [x] metavariableskill
- [x] vskill
\ 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
  • Pins
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
  • Effects
  • 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
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • Particles Types
Examples
Useful Tips