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 144
    • Issues 144
    • 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
  • Stats

Stats · Changes

Page history
added TriggerStats and related example authored Feb 25, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 28 additions and 0 deletions
+28 -0
  • Stats.md Stats.md +28 -0
  • No files found.
Stats.md
View page @ e7c47e3d
...@@ -32,6 +32,7 @@ Options that can be used in the Stat in order to better customize it ...@@ -32,6 +32,7 @@ Options that can be used in the Stat in order to better customize it
| MaxValue | Max value for the stat | | MaxValue | Max value for the stat |
| Triggers | What triggers the stat effect. Can be any MythicMobs trigger, minus the "on" bit. <br />(For instance: to use `onAttack`, one needs to write `ATTACK` as a trigger) <br />As of v.5.4.0, only damaging triggers are available; keep an eye on dev builds for expanded functionality.| | Triggers | What triggers the stat effect. Can be any MythicMobs trigger, minus the "on" bit. <br />(For instance: to use `onAttack`, one needs to write `ATTACK` as a trigger) <br />As of v.5.4.0, only damaging triggers are available; keep an eye on dev builds for expanded functionality.|
| ParentStats | A list of other stats that this stat relies on | | ParentStats | A list of other stats that this stat relies on |
| TriggerStats | A list of stats that the triggering entity may have and their FormulaKey, separated by a space. The FormulaKey can then be used in other Formulas to fetch its value from the trigger's. [Here is an example](#ice_damage) |
| Formula | A formula for the base value if this stat has parent stats | | Formula | A formula for the base value if this stat has parent stats |
| FormulaKey | A key you can use in formulas, when this stat is the parent of another | | FormulaKey | A key you can use in formulas, when this stat is the parent of another |
| BaseValue | A static base value if it doesn't have parents | | BaseValue | A static base value if it doesn't have parents |
...@@ -740,4 +741,31 @@ SPEED: ...@@ -740,4 +741,31 @@ SPEED:
Additive: '+<value> Speed' Additive: '+<value> Speed'
Multiply: '+<value>% Speed' Multiply: '+<value>% Speed'
Compound: 'x<value>% Speed' Compound: 'x<value>% Speed'
```
#### `ICE_DAMAGE`
Here is a more complex example that also involves TriggerStats
```yaml
ICE_DAMAGE:
Enabled: true
Type: DAMAGE_MODIFIER
Priority: 50
Triggers:
- ATTACK
ExecutionPoint: PRE
Display: '&f֍'
DamageType: ALL
BaseValue: 0
TriggerStats:
- LIGHTNING_DEFENSE LD
- AIR_DEFENSE AD
- EARTH_DEFENSE ED
- FIRE_DEFENSE FD
- AETHER_DEFENSE AE
- VOID_DEFENSE VD
DamageFormula: '1 + d * ( LD + AD - ED - FD + 0.5 * ( AE - VD ) ) / 100'
Formatting:
Rounding: 2
Additive: '&a+<value>'
Multiply: '&a+<value>%'
Compound: '&ax<value>%'
``` ```
\ 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
  • Math
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
Examples
Useful Tips