Reference
Profile reference
parts changing soonEvery key of a ThePredict profile, plus the keys ThePredict reads from the MythicMobs mob file, with type, default and range.
A profile file is a .yml or .yaml file in plugins/MythicMobs/AIConfig/Profiles/ that starts with schemaVersion: 2 and holds one or more profiles. Each profile is keyed by its ID (snake_case is recommended). For the concepts behind these keys, start with Profiles, tactics & contexts.
Tip Strict by design
An unknown key is an error that names the file and the path (is not a known field), and a profile with an error is skipped while the others keep loading. Values a profile does not set come from profileDefaults in config.yml, and no profile can widen the global decision.* limits.
Note off and on need no quotes
YAML reads a bare off or on as a boolean; every mode key of a profile reads it back as off or on, so Native: off and Native: "off" mean the same.
Note Keys with no effect yet
A few keys are accepted and validated but not used by this build. They are marked no effect yet below; when a profile gives one of them a value other than its default, the profile still loads and the console logs <file>: <profile>.<path>: has no effect in this build.
A profile that uses most sections
schemaVersion: 2
guardian_full:
MythicID: ThePredictGuardian
TypeOfMythicID: MOB
Type: NORMAL
Objective: Protect the altar and punish players who attack it from range
Choices:
melee: { MythicID: ThePredictGuardianMelee, TypeOfMythicID: SKILL, RequiresTarget: true }
ranged: { MythicID: ThePredictGuardianRanged }
defense: { MythicID: ThePredictGuardianDefense, RequiresTarget: false }
punch: { Kind: VANILLA_MELEE }
Tactics:
press_and_strike: { Movement: APPROACH, Choice: melee, Priority: 70 }
brawl: { Movement: APPROACH, Choice: punch, Priority: 40 }
keep_distance_and_shoot:
Movement: KEEP_DISTANCE
Choice: ranged
Description: Stay outside melee reach and shoot while the target approaches
Priority: 60
retreat_and_defend: { Movement: RETREAT, Choice: defense, Priority: 90 }
flank_and_strike: { Movement: FLANK, Choice: melee }
hold: { Movement: HOLD, Description: Wait for the target to come closer, Priority: 10 }
Contexts:
wounded:
Conditions:
- healthpercent{p=<30%}
Priority: 95
Tactics: [retreat_and_defend, keep_distance_and_shoot]
idle:
Priority: 10
Tactics: [hold]
DirectTactic: hold
Movement:
MeleeReach: 2.5
RangedReach: 16
Band: { Inner: 5, Outer: 9 }
Retreat: { Distance: 10, Speed: 1.2 }
Approach: { Speed: 1.15 }
Arena: { Radius: 24 }
Health: { Critical: 0.3, Wounded: 0.6 }
Threat: { AssistsOthers: 1.5, RangedHarass: 1.0, BlockedHits: 0.25, UnreachableDecayPerSecond: 2.0, MaxPerWindow: 20.0 }
BaseAI:
- 1 meleeAttack
- 2 randomStroll
Timing: { MinimumConfidence: 0.45, SwitchMargin: 0.15, QuestionDetail: full, FitChecks: false, CastMode: any_ready, ReadyHorizon: 0 }
Participants:
PlayerGameModes: [SURVIVAL, ADVENTURE]
Entities:
Allow: ['kind:MONSTER', 'faction:altar_raiders']
Deny: ['category:ANIMAL']
PerceiveNonTargets: falseMob file keys
These keys go in the MythicMobs mob file (plugins/MythicMobs/Mobs/*.yml), next to Type and Health, not in the profile. A wrong value is a catalog error that names the mob, and the mob stays unbound.
MyBoss:
Type: ZOMBIE
Health: 200
Predictor: true
PredictorDifficulty: Difícil
PredictorEntropy: falseIn the MythicMobs mob file. Turns ThePredict on for this mob. The mob also needs a valid profile whose MythicID names it. Any value other than true or false is a catalog error (<Mob>.Predictor: must be true or false). With false, or without the key, the mob is a plain MythicMobs mob.
In the mob file. With true (and Predictor: true), this mob may also explore other tactics against players, to collect learning data (see Learning & training). Players do not see it. Remove the key to turn it off; there is no command or global switch. PredictorTraining: true without Predictor: true is a catalog error.
PredictorDifficultychanging soonIn the mob file, with Predictor: true. Difficulty preset of this mob: the target length of a whole fight against players. Another value is a catalog error and the mob stays unbound. See Difficulty.
PredictorEntropychanging soonIn the mob file, with Predictor: true. Opt-in lethal mode: the mob always plays at full pressure and its reaction, adaptation and replanning times shrink during the fight down to the preset's floor. It never reads hidden player input. See Difficulty.
Profile root
Exact MythicMobs mob ID this profile controls. IDs are case-sensitive; when the case is the only difference, the error suggests the right spelling (unknown mob 'guardian'; IDs are case-sensitive, did you mean 'Guardian'?). Two profiles for the same mob are both excluded.
Kept for compatibility with old profiles. Only MOB.
Profile mode. Only NORMAL in this release.
What the mob tries to achieve, in short, clear English. It reaches Jev with every question. The catalog warns, without blocking, when the text may not be English.
The skills (or the vanilla hit) the tactics can use, keyed by a choice ID of your own ([a-z][a-z0-9_]{0,39}). Choice IDs never reach Jev. See Choices.<id>.* below.
What Jev or the local planner can choose. The tactic ID is the option name Jev reads, so make it describe the action in English. See Tactics.<id>.*.
Situations that limit which tactics are eligible, written with MythicMobs conditions or as shortcut contexts. See Contexts.<id>.*.
Distances and speeds of the movements. Values it does not set come from profileDefaults.
Health thresholds of the CRITICAL and WOUNDED bands.
Weights of the enriched threat ThePredict adds to the MythicMobs threat table. See Targets, participants & threat.
Lines in MythicMobs AIGoalSelectors syntax: what the mob does at level 4 (BASE), when ThePredict does not control it. A clear line is dropped. If a line names a goal MythicMobs does not know, the installation is refused and the mob keeps its MythicMobs AI.
BaseAI:
- 1 meleeAttack
- 2 randomStrollConfidence, switch margin, question detail, casting and the per-tick layer of this profile.
Which reaction bands run before the tactic's own skill.
Which players and other entities the mobs of this profile may perceive, target and fight. Without it, the global participants section applies. See Targets, participants & threat.
Difficultychanging soonTuning of the target-time controller for this profile. See Difficulty.
Stance sharing and timing for this profile. See Stances, tells & poise.
Telegraphchanging soonTell enforcement and feints for this profile. See Stances, tells & poise.
Poise and stagger. Without this section the mob has no poise and cannot be staggered.
Terrain reading for this profile. See Zones & terrain.
Decisionno effect yetPer-profile overrides of pruning, option cap, candidate scoring and diversity.
No effect in this build: the section is validated and kept for overlays, but this build decides with the global decision.* keys. Each of its keys logs a warning when the profile loads if it asks for anything other than inherit.
Choices
Choices.<id> — one entry per skill (or vanilla hit) the tactics can use. The ID is yours: [a-z][a-z0-9_]{0,39}, local to the profile, never sent to Jev.
MYTHIC_SKILL casts a MythicMobs skill. VANILLA_MELEE deals a vanilla hit (never farther than Movement.MeleeReach, at most one hit every 20 ticks, like vanilla) and takes no MythicID.Exact MythicMobs skill ID (case-sensitive). The skill should declare an Intention line (see Skills & intents). Must be absent for VANILLA_MELEE.
Kept for compatibility. Only SKILL.
Whether the choice needs a target. A self-heal or a self-buff is usually false.
Extra cooldown per mob, for compatibility only. Prefer the skill's native Cooldown (and Charges), which ThePredict reads and respects.
Intention line for this choice (the binder warns Choices.<id>.Purpose overrides the Intention of skill '<S>'). It is the only form that takes numbers (Reach, Radius, WindUp). See Skills & intents.Choices.<id>.Telegraphchanging soonOverrides what ThePredict deduces about this skill's tell: Danger, Answer and RecoveryTicks.
Overrides how ThePredict reads the skill's push (it reads damage knockback, throw, leap, explosions and pulls). A skill with nested skills, projectiles or auras is assumed to KNOCKBACK; set Displacement: NONE if it does not push.
Overrides whether ThePredict thinks the skill can reach allies (it reads targeters such as @MobsInRadius, @Parent or @Children). Matters for the SUPPORT group role.
Purpose (administrator override)
Choices.<id>.Purpose replaces the skill's Intention line for that choice. It is internal data for an administrator who must tune one mob; authors should write the Intention line instead (see Skills & intents).
What the skill is for. The first role is the primary one.
How the skill reaches its target.
Reach of the skill. Required with MELEE and CONE; not allowed with SELF and AREA_AROUND_SELF. A reach beyond Movement.RangedReach warns that Jev reads it as beyond ranged reach.
Area radius. Required with AREA_AROUND_SELF and AREA_AT_TARGET; not allowed otherwise.
Wind-up before the hit lands.
Damage tier. Required when Roles has DAMAGE or FINISHER, and then it cannot be NONE.
Situations where the skill works best.
What can go wrong with it.
The skill goes through shields. Cannot be combined with the BLOCKED_BY_SHIELD risk.
Choice telegraph
Changing soon
Tells will be redefined in an upcoming release.
Choices.<id>.Telegraph.Dangerchanging soonDanger class of the hit, instead of the one ThePredict deduces from the skill. MEDIUM and above are enforced against players.
Choices.<id>.Telegraph.Answerchanging soonWhat the target should do to avoid the hit. It wins over the skill's ANSWER_* primitive and over the answer deduced from the delivery, and decides which PREDICTOR_TELL_* signal is sent.
Choices.<id>.Telegraph.RecoveryTickschanging soonRecovery after the hit, instead of the one read from the skill's trailing delay lines.
Tactics
Tactics.<id> — 1 to 255 tactics. The ID is the option name Jev reads: [a-z][a-z0-9_]{2,39} (3 to 40 characters, starting with a letter). none and the prefixes debug_, tell_ and stance_ are reserved.
How the mob moves while the tactic runs (see Movement & goals). FLANK requires a Choice. Species with a Brain only accept NONE.
ID of the choice this tactic casts. A tactic without a choice only moves.
What the tactic does, in English, for Jev. With standard and full detail it is sent whole; with compact only an excerpt is used, when needed to tell two options apart. Put the essential first.
Order of the local planner: among the eligible tactics, the highest priority wins. Also decides which options are kept when a question is over the option cap.
Base stance while this tactic runs, instead of the one Stances.ByMovement gives its movement.
Contexts
Contexts.<id> — up to 16 contexts. The ID follows the choice ID rules. idle, attacking_phase, tracking_enemy and low_health_phase are shortcut contexts computed by ThePredict and take no Conditions (see Profiles, tactics & contexts).
MythicMobs condition lines, at least one; all must hold. Only entity conditions work here (they are evaluated on the mob itself, outside any skill). Not allowed in the shortcut contexts idle, attacking_phase, tracking_enemy and low_health_phase.
Conditions:
- healthpercent{p=<30%}When several contexts are active, the highest priority decides. With equal priorities, the one declared first wins and the catalog warns.
Tactics eligible while this context is active, at least one, no repeats.
Optional. Must be listed in Tactics. In local mode this tactic is picked directly while the context is active.
Movement
The keep-distance band: Inner and Outer.
Band: { Inner: 5, Outer: 9 }Distance and Speed of RETREAT.Speed of APPROACH, KEEP_DISTANCE and the walk back to the arena.An optional arena around the spawn point.
Melee distance: the MELEE band, where APPROACH stops, and the reach of melee skills.
Up to this distance the target is in the RANGED band; farther, BEYOND.
Band
Inner edge of KEEP_DISTANCE: closer than this, the mob backs away.
Outer edge of KEEP_DISTANCE: farther than this, the mob closes in.
Retreat
Distance a retreat tries to open.
Speed while retreating.
Approach
Speed while approaching, keeping distance and returning to the arena.
Arena
When set, the mob walks back to its spawn point whenever it gets farther than this radius.
Health
At or below this ratio of health (health plus absorption over max health) the band is CRITICAL, for the mob and for players.
At or below this ratio (and above Critical) the band is WOUNDED; above it, HEALTHY.
Threat
When a player heals or buffs other participants with a splash or lingering potion: weight × participants reached, added to that player in the table of every active member of the encounter.
Multiplies the final damage of each projectile from a player who is not the mob's target, in that mob's table.
Points per hit of the mob that the player blocks with a shield, in that mob's table.
Points per second the target loses while the mob cannot reach it on foot (after two decisions following a path that does not reach it). Ignored, with a warning, when the mob has ThreatTable.DecayUnreachable: true, so threat is not removed twice.
Cap of points added per mob table, player and fact in each 100-tick window.
Timing
The heartbeat, the decision intervals and the contingencies are global (decision.* and profileDefaults.*); a profile cannot change them.
Answers from Jev below this confidence are discarded. Raise it for a boss whose mistakes are expensive: more doubtful answers are dropped and the mob plays locally more often.
To switch tactic, the new one must beat the current one by this probability margin.
How much each option of this profile tells Jev, and its cost (see Jev connection). Never widens the global token limits.
Adds a yes/no "does this option fit now?" question per option, which can veto an option or rescue a low-confidence answer. Sent only with QuestionDetail: full (with another level it is ignored and the load warns). An error while decision.fitChecksAllowed is false.
any_ready: every skill with a valid Intention line fires on the first tick it is ready, besides the tactic's choice. intent_only: only the tactic's choice fires. The profile wins over the global value.Ticks ahead a skill still counts as available for the question. Only the question uses it, never the local planner.
Per-tick layer of this profile. Asking for more than the global mode warns and uses the global one; an overlay that asks for more is lowered the same way.
Which reaction bands are evaluated (see How a fight runs).
A reaction's trigger must hold this long before the reaction fires. Against players, the difficulty preset's reaction floor also applies.
reactive keeps the intent short (Timing.IntentHorizon) and extends it while nothing changes; it asks more often and costs more. standard is the saving mode: intents last the usual time.Shortest gap between two reactive questions.
Length of a reactive intent. Ignored, with a warning, under Cadence: standard.
Reactions
Reaction bands tried before the tactic's own skill.
Participants
Must be a subset of the global list; a mode outside it is an error. []: the mobs of this profile never perceive or attack players.
Non-player entities: Allow, Deny, PerceiveNonTargets.
Entities
Selectors added to participants.entities.allow. Ignored with a warning when participants.entities.profilesMayAllow is false.
Selectors added to participants.entities.deny; they never take part.
true (only allowed while the global key is true): the mobs also perceive allowed entities nearby, not only their target.Difficulty
Changing soon
Difficulty is about to be redefined as levels of intelligence and aggression. This section documents how the current build works.
Difficulty.Modechanging soonHow this profile's mobs choose their pressure (see difficulty.defaultMode).
Difficulty.TargetSecondschanging soonTarget length of a whole fight against players, instead of the preset's. A world override with a preset beats it.
Band around the target time inside which the in-fight controller does not react.
No effect in this build: the controller always uses difficulty.toleranceRatio. No warning is logged.
Difficulty.MinRungchanging soonLowest pressure rung the controller may use.
Difficulty.MaxRungchanging soonHighest pressure rung the controller may use.
Difficulty.StartRungchanging soonRung at the start of a fight. auto uses what the mob learned from earlier fights.
Difficulty.InFightchanging soonWhether the in-fight controller may move the rung during the fight.
Difficulty.Learnchanging soonWhether the between-fights learning may move the starting rung.
Difficulty.NativeLevelchanging soonWith spawn (and difficulty.nativeLevelAllowed true), five fights in a row at an extreme may move the MythicMobs level of the next spawn by ±1.
Stances
Without this section the profile inherits stance.* from config.yml. See Stances, tells & poise.
How the stance is shared with MythicMobs (see stance.nativeMode).
Shortest time a base stance holds before it changes.
Reactive cycles in a row (2 ticks each) a new base stance must be asked for before it applies. The survival reaction EVADE_CRITICAL skips this wait and MinDwellTicks.
Base stance → roles that CastMode: any_ready may fire in that stance (DAMAGE, DEFENSE, ...). The tactic's own choice is never filtered. An unknown role is an error.
Casts:
GUARDED: [DEFENSE, SUSTAIN]
PRESSING: [DAMAGE, CONTROL, GAP_CLOSE]Base stance of each movement, for tactics without their own Tactics.<id>.Stance.
ByMovement:
APPROACH: PRESSING
HOLD: GUARDED
RETREAT: EVASIVEContexts of this profile that enrage the mob while they are active: predictorstance{s=enraged} is true, and the mob receives PREDICTOR_STANCE_ENRAGED on entering and PREDICTOR_STANCE_CALM on leaving. An unknown context is an error.
Exact values of the mob's own MythicMobs stance that also enrage it. Only with Native: hybrid or write; with read or off the load warns.
Stances.Describeno effect yetMeant to add a stance phrase to the option text Jev reads for tactics with Stance:.
No effect in this build: the phrase exists in the code but is not sent. A value other than the default logs a warning when the profile loads: <file>: <profile>.Stances.Describe: has no effect in this build.
Telegraph
Changing soon
Tells and telegraphing will be redefined in an upcoming release.
Without this section the profile inherits telegraph.* from config.yml.
Telegraph.AgainstPlayerschanging soonEnforce tell minimums against players (see telegraph.againstPlayers).
Telegraph.Commitmentchanging soonChance that a tell is real. With 100 there are no feints; lower values let the mob feint.
Telegraph.EntropyCommitmentchanging soonThe same chance while Entropy is on.
Telegraph.AgainstEntitieschanging soonEnforce tell minimums against non-player targets.
Telegraph.ShortWindUpchanging soonWhat happens when a skill's wind-up is shorter than its minimum against a player: lead sends the tell first and casts when the minimum is met; immediate casts at once with the author's wind-up (the binder warns, and status counts those hits).
Telegraph.DefaultRecoveryTickschanging soonRecovery after a skill with RISK_LEAVES_CASTER_EXPOSED or RISK_ROOTS_CASTER when neither the choice nor the skill gives one.
Poise
Profile only, with no global keys. Without this section the mob has no poise and cannot be staggered. The defaults below apply to keys left out of a Poise section.
Share of max health that must be dealt to break poise.
Without damage for this long, poise starts to recover.
Share recovered every second after the delay.
Damage taken during a wind-up counts this much more.
Poise the mob loses when the target blocks one of its HEAVY or SEVERE hits with a shield.
Length of a stagger: the mob casts nothing, does not react and ThePredict does not move it. A break during a wind-up interrupts it.
After a stagger, poise does not fill for this long.
Zone
Zone mode of this profile. It can only lower zone.mode; a higher value warns and uses the global one.
Radius read around the fight. With an arena, the zone uses the arena radius plus 4 (capped by zone.maxRadiusBlocks).
Whether terrain facts are published (to Jev, predictorzone and <caster.predictor.zone>) when the effective mode is full.
With exploit, the mob may push a non-player target into a hazard (lava, void, a deadly drop). It never does so against a player.
No effect in this build: the hazard-push reaction is masked at every pressure rung, so exploit changes nothing. Only Entropy against players, with a zone mode of guard or full, allows pushes into hazards, whatever this key says.
Group
Group.Modechanging soonGroup mode of this profile. It can only lower group.mode; a higher value warns and uses the global one.
Squad name ([a-z][a-z0-9_]{0,39}). When choosing a leader, a bigger squad wins ties of LeaderPriority.
Leader election: the member with the highest priority leads, then the one with the biggest squad, then the healthiest. Without any priority or squad in the encounter there is no leader.
How much of a player's attacker cap this mob takes (a big boss can count as 2 or more).
Roles the group may give this mob. reserve is always possible. Each named role must be one the profile can fill, or the load fails. Roles only exist while the group follows a plan (see Groups).
free: the group's fairness limits only record against non-player targets. fair: they apply against entities too.Read from the leader's profile in full mode: which questions the encounter's request carries. plan_and_leader: the group plan question and the leader's own question. plan_only: only the plan question. leader_only: only the leader's question. members: one question per member and no plan question, as in fair and coordinate. Members that are not asked keep playing locally. See Groups.
Group.PlanQuestionno effect yetMeant to choose when the group plan question is attached: only when the group changes, or on every heartbeat.
No effect in this build: the plan question goes in every request that carries it, whatever this key says. A value other than the default logs a warning when the profile loads: <file>: <profile>.Group.PlanQuestion: has no effect in this build.
Patterns
Pattern mode of this profile. It can only lower patterns.mode; a higher value warns is above Patterns.Mode and uses the minimum.
free: against non-player targets the exploitation quota does not apply. fair: it applies against entities too.In full mode, whether short pattern phrases reach Jev.
Decision
The four keys are parsed and validated (for example MaxOptions must be 0 or 2 to 8) and kept for overlays, but this build keeps using the global decision.* values in fights. A value other than inherit (or 0) logs a warning when the profile loads.
Decision.Pruningno effect yetPer-profile pruning; inherit keeps decision.pruning.
No effect in this build: the key is accepted and validated, but the engine does not read it. A value other than the default logs a warning when the profile loads: <file>: <profile>.Decision.Pruning: has no effect in this build.
Decision.MaxOptionsno effect yetPer-profile option cap; 0 keeps decision.maxOptionsPerQuestion.
No effect in this build: the key is accepted and validated, but the engine does not read it. A value other than the default logs a warning when the profile loads: <file>: <profile>.Decision.MaxOptions: has no effect in this build.
Decision.CandidateScoringno effect yetPer-profile candidate scoring; inherit keeps decision.candidateScoring.
No effect in this build: the key is accepted and validated, but the engine does not read it. A value other than the default logs a warning when the profile loads: <file>: <profile>.Decision.CandidateScoring: has no effect in this build.
Decision.Diversityno effect yetPer-profile candidate diversity; inherit keeps the global behavior.
No effect in this build: the key is accepted and validated, but the engine does not read it. A value other than the default logs a warning when the profile loads: <file>: <profile>.Decision.Diversity: has no effect in this build.