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 136
    • Issues 136
    • 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
  • Conditions

Conditions · Changes

Page history
clarified condition actions authored Oct 16, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 46 additions and 8 deletions
+46 -8
  • Skills/Conditions.md Skills/Conditions.md +46 -8
  • No files found.
Skills/Conditions.md
View page @ 0b087b1a
......@@ -84,15 +84,53 @@ YourMagnificentSkill:
Condition Actions allow you to do additional things based off of conditions. The default condition action is **true**
| Action | Description |
|----------------------------|----------------------------------------------------------------------------|
| **required** (or **true**) | The condition is required for the skill to run. |
| **cancel** (or **false**) | The skill will not run if this condition is met. | **Level** | |
| **power [multiplier]** | Modifies the skill's power (e.i. power 2.0 would double the skill's power) |
| **cast [skill]** | Casts an additional skill if the condition is met. |
| **castinstead [skill]** | Casts a different skill instead if the condition is met. |
| **orElseCast [skill]** | Casts a different skill instead if the condition is not met. (4.12 MM) |
| Action | Description |
|----------------|---------------------------------------------------------------------------------------|
| `true` | The skill will run if this condition is met |
| `false` | The skill will *not* run if this condition is met |
| `power` [multiplier] | Multiplies the skill's power by the value of `multiplier` (e.i. power 2.0 would double the skill's power) |
| `cast` [skill] | Casts an additional skill if the condition is met, without having effect on the execution of original skill |
| `castinstead` [skill] | Casts a different skill instead if the condition is met |
| `orElseCast` [skill] | Casts a different skill instead if the condition is not met |
<!--
| `level` | |
-->
```yaml
Conditions:
- day true
Skills:
- message{m="It's day!"} @self
```
> Will run only if it's day in the caster's world
```yaml
Conditions:
- day false
Skills:
- message{m="It's *not* day!"} @self
```
> Will run only if it's *not* day in the caster's world
> The opposite behavior of `true`
```yaml
ExampleSkill:
Conditions:
- day true
- sunny orElseCast OtherSkill
Skills:
- message{m="It's day and sunny!"} @self
OtherSkill:
Skills:
- message{m="It's day and not sunny!"} @self
```
> If a condition line is not met *(the condition is met and the condition action if false or vice versa)* [no more conditions will be checked](https://en.wikipedia.org/wiki/Short-circuit_evaluation)
> So even if OtherSkill is executed because of the `sunny` condition we can be sure that the `day` condition is also met, or else no skill would have run at all because
> `day true`
> is checked before
> `sunny orElseCast OtherSkill`
## Composite Conditions
Conditions can also be grouped by parenthesis and evaluated via the **AND** (`&&`) and **OR** (`||`) boolean operators.
......
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information
Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
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
  • 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
  • Intratick Scheduling
  • Dynamic Metaskills