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 147
    • Issues 147
    • 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
  • variableequals

variableequals · Changes

Page history
added yaml syntax highlight authored Jun 14, 2023 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 3 additions and 3 deletions
+3 -3
  • Skills/conditions/variableequals.md Skills/conditions/variableequals.md +3 -3
  • No files found.
Skills/conditions/variableequals.md
View page @ dd8fafe8
...@@ -15,12 +15,12 @@ A condition that checks the value of a [variable](/Skills/Variables). ...@@ -15,12 +15,12 @@ A condition that checks the value of a [variable](/Skills/Variables).
In this example, the target players would only hear growling from any number of nearby bears once every 10 minutes. In this example, the target players would only hear growling from any number of nearby bears once every 10 minutes.
``` ```yaml
BearMob: BearMob:
Skills: Skills:
- skill:BearGrowl @PlayersInRadius{r=40} ~onTimer:60 - skill:BearGrowl @PlayersInRadius{r=40} ~onTimer:60
``` ```
``` ```yaml
BearGrowl: BearGrowl:
TargetConditions: TargetConditions:
- variableEquals{var=target.heardbear;value="yes"} cancel - variableEquals{var=target.heardbear;value="yes"} cancel
...@@ -29,7 +29,7 @@ BearGrowl: ...@@ -29,7 +29,7 @@ BearGrowl:
- setvariable{var=target.heardbear;value="yes";duration=6000} - setvariable{var=target.heardbear;value="yes";duration=6000}
``` ```
In this example, the skill would only fire if the global variable “poison_storm” is set to true. In this example, the skill would only fire if the global variable “poison_storm” is set to true.
``` ```yaml
PoisonStormDamage: PoisonStormDamage:
Conditions: Conditions:
- varEquals{var=global.poison_storm;value="yes"} - varEquals{var=global.poison_storm;value="yes"}
......
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • 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
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples