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 137
    • Issues 137
    • 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
  • randomskill

randomskill · Changes

Page history
Update randomskill authored Dec 18, 2023 by Amy's avatar Amy
Hide whitespace changes
Inline Side-by-side
Showing with 25 additions and 27 deletions
+25 -27
  • skills/mechanics/randomskill.md skills/mechanics/randomskill.md +25 -27
  • No files found.
skills/mechanics/randomskill.md
View page @ 76c2b17e
Mechanic: RandomSkill ## Description
=====================
Executes a random skill from the list of supplied Executes a random skill from the list of supplied
[skills](skills/mechanics/skill). Will ignore any skills that are on [skills](skills/mechanics/skill). Will ignore any skills that are on
cooldown. There is no limit to how much skills can be added. cooldown. There is no limit to how much skills can be added.
Attributes ## Attributes
----------
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|-----------|---------|---------------------------------------------------------|---------| |-----------|---------|---------------------------------------------------------|---------|
| skills | | The list of skills to execute, must be separated by a `,` | | | skills | | The list of skills to execute, must be separated by a `,` | |
| fallbackskill | fbskill, fbs | the metaskill to run if condition checks fail for all skills in the randomskill list | | fallbackskill | fbskill, fbs | the metaskill to run if condition checks fail for all skills in the randomskill list |
## Weight
You can also make your skills be executed with different chances via the weight system by simply adding a space and a number after the skill names. Skills without a weight will default to weight 1. The higher the number the higher chance that skill has for being picked.
In this example SkillOne will have the highest chance of being picked, followed by SkillTwo, then SkillFour since it has the default weight of 1, then lastly SkillThree will have the lowest chance.
```yaml
Skills:
- randomskill{skills=SkillOne 10,SkillTwo 0.5,SkillThree 0,SkillFour}
```
Examples ## Examples
-------- ```yaml
Skills:
Skills: - randomskill{skills=skill1,skill2,skill3}
- randomskill{skills=skill1,skill2,skill3} ```
Having problems overviewing your randomskill-syntax? Try this: Having problems overviewing your randomskill-syntax? Try this:
```yaml
Skills: Skills:
- randomskill{ - randomskill{
skills= skills=
superskill, superskill,
green_skill, green_skill,
skill3, skill3,
grandSkill, grandSkill,
7331 7331
} }
```
You can also make your skills be executed with different chances via the weight system. Skills without a weight will default to weight 1. \ No newline at end of file
Skills:
- randomskill{skills=metaskill 10,otherskill 0.5,someskill 0,testskill}
\ 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
    • 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
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Examples
Useful Tips