ThePredictdocs v0.0.1 RC

Combat systems

Stances, tells & poise

parts changing soon

The stance a mob shows, how ThePredict announces dangerous hits through signals your skills can turn into tells, and the poise meter that lets players stagger a boss.

ThePredict never adds a particle, a sound or an animation. Everything on this page is published as signals, a variable and placeholders; your own skills decide what the player sees and hears.

Stances

Every bound mob has a visible stance:

StanceKindWhen
neutralbaseKEEP_DISTANCE and NONE tactics, and at level BASE.
pressingbaseAPPROACH and FLANK tactics.
guardedbaseHOLD tactics.
evasivebaseRETREAT tactics.
windupactionWhile a telegraphed hit is winding up.
recoveryactionRight after such a hit.
staggeredactionAfter its poise breaks.

The base stance of a tactic comes from Stances.ByMovement (the table above by default) unless the tactic sets its own Tactics.<id>.Stance. A new base stance must be asked for Stances.HysteresisCycles reactive cycles in a row (2 by default, 2 ticks each) and holds at least Stances.MinDwellTicks (20 ticks); the survival reaction EVADE_CRITICAL skips both waits.

Sharing the stance with MythicMobs

Stances.Native (global stance.nativeMode) decides how the stance meets MythicMobs' own stance:

ModeWhat ThePredict does
hybrid (default)Writes the variable predictor_stance (lower case) and reads the mob's own stance. Never calls setStance.
readOnly reads the mob's stance.
writeCalls setStance; a stance your skills set wins a conflict until the next action change. The binder warns when the mob already sets its own stance.
offNeither reads nor writes.

When the visible stance changes, the mob receives PREDICTOR_STANCE_<STANCE> (if it has the handler). The example boss uses it to mirror the stance natively:

YAML
Skills:
- setstance{stance=pressing} @self ~onSignal:PREDICTOR_STANCE_PRESSING
- setstance{stance=guarded} @self ~onSignal:PREDICTOR_STANCE_GUARDED
- setstance{stance=evasive} @self ~onSignal:PREDICTOR_STANCE_EVASIVE

Read it in skills with predictorstance{s=guarded,evasive} or the placeholder <caster.predictor.stance>.

Enraged

Stances.EnragedContexts lists contexts of the profile that enrage the mob while they are active: predictorstance{s=enraged} becomes true, and the mob receives PREDICTOR_STANCE_ENRAGED on entering and PREDICTOR_STANCE_CALM on leaving. Stances.EnragedNative adds values of the mob's own MythicMobs stance that also count as enraged (only with hybrid or write). Being enraged never shortens a tell or a recovery below its minimum.

Which skills fit a stance

Stances.Casts maps a base stance to the roles that CastMode: any_ready may fire in it. The tactic's own choice is never filtered.

YAML
Stances:
  Native: hybrid
  Casts:
    GUARDED: [DEFENSE, SUSTAIN]
    PRESSING: [DAMAGE, CONTROL, GAP_CLOSE]

Stances.Describe is accepted but has no effect in this build; with true the profile logs a warning when it loads.

Tells

Changing soon

Tells and telegraphing will be redefined in an upcoming release. This section documents how the current build works.

A tell is the window between "this hit is coming" and the hit. ThePredict decides when a dangerous hit needs one, how long it lasts and what the target should do; your skills decide how it looks and sounds.

Danger and answer

Each choice gets a danger class and an answer:

  • Danger: NONE, LIGHT, MEDIUM, HEAVY or SEVERE, deduced from the skill's purpose (damage tier, area or single target, control, finisher, shield-piercing) or set with Choices.<id>.Telegraph.Danger. High damage, or medium damage that also controls, finishes or ignores shields, is SEVERE; medium damage in an area, or control, is HEAVY; medium single-target damage, low damage in an area or a debuff is MEDIUM; low single-target damage is LIGHT. An untyped skill is MEDIUM.
  • Answer: BLOCK, DODGE, BACK_OFF, BREAK_SIGHT or INTERRUPT. It comes, in this order, from Choices.<id>.Telegraph.Answer in the profile, from the ANSWER_* primitive of the skill's Intention line, or else from the delivery: melee and cones ask to block, areas around the caster and shield-piercing hits ask to back off, projectiles and areas at the target ask to dodge, and an instant ranged hit asks to break line of sight when it needs one (otherwise to back off). An untyped skill asks to back off.

A Choices.<id>.Purpose in the profile replaces the whole Intention line, its ANSWER_* included.

Minimum length

With enforcement on (Telegraph.AgainstPlayers enforce by default; Telegraph.AgainstEntities off), every MEDIUM, HEAVY or SEVERE hit is announced for at least:

minimum of its class + answer time + delivery margin

ClassMinimum (telegraph.minTicks)
LIGHT0 (not enforced)
MEDIUM8 ticks
HEAVY16 ticks
SEVERE24 ticks

The answer adds telegraph.answerTicks ticks (0 to block or dodge, 3 to back off, break sight or interrupt) and the delivery margin 1 tick. A HEAVY melee hit therefore gets at least 16 + 0 + 1 = 17 ticks. While Entropy is on, minimums do not apply.

When the skill's own wind-up is shorter than its minimum, Telegraph.ShortWindUp decides: lead (default) starts the tell first and casts when the minimum is met; immediate casts at once with your wind-up (the binder warns, and /thepredict status counts those hits).

Feints and recovery

What your skills can use

You getMeaning
PREDICTOR_TELL_BLOCK, PREDICTOR_TELL_DODGE, PREDICTOR_TELL_BACK_OFF, PREDICTOR_TELL_BREAK_SIGHT, PREDICTOR_TELL_INTERRUPTSignals sent when a tell starts, only to mobs with the matching handler.
<caster.predictor.answer>The answer of the open tell, in lower case; none without one.
<caster.predictor.telegraph>Ticks until the hit lands; none without a tell.
predictorstance{s=windup}True during the wind-up; recovery right after the hit.
Your tell, your styleYAML
Skills:
- sound{s=item.shield.block;p=0.6} @PlayersInRadius{r=16} ~onSignal:PREDICTOR_TELL_BLOCK
- effect:particles{p=cloud;a=30;hs=1.5;vs=0.1} @self ~onSignal:PREDICTOR_TELL_BACK_OFF

When a tell has no cue a player could notice, the binder warns: skill '<S>' telegraph has no visual (or audio) cue; ThePredict adds none: add a ~onSignal:PREDICTOR_TELL_<ANSWER> handler. It also warns when two skills ask for different answers but start with the same effects, and when a delayed hit on @target cannot be avoided by moving away.

In groups, the number of open MEDIUM tells on one player and the spacing around big impacts are capped too (see Groups).

Poise

Poise lets players break a boss's rhythm. It exists only when the profile has a Poise section (there are no global keys):

KeyDefaultEffect
Max0.15Share of max health that must be dealt to break poise.
RegenDelayTicks60Without damage for this long, poise starts to recover.
RegenPerSecond0.05Share recovered per second after the delay.
WindUpMultiplier1.5Damage taken during a wind-up counts this much more.
BlockedHitPoise0.05Poise the mob loses when the target blocks one of its HEAVY or SEVERE hits.
StaggerTicks30Stagger length: the mob casts nothing, does not react, and ThePredict does not move it. A break during a wind-up interrupts the hit.
ImmunityTicks100After a stagger, poise does not fill for this long.

<caster.predictor.poise> shows the poise left (0–100) and the stance turns staggered during a stagger.

The example boss, all together

From AIConfig/Profiles/ThePredictGuardian.ymlYAML
  Stances:
    Native: hybrid
    Describe: false
    ByMovement:
      APPROACH: PRESSING
      HOLD: GUARDED
      RETREAT: EVASIVE
  Telegraph:
    AgainstPlayers: enforce
    AgainstEntities: off
    Commitment: 100
    EntropyCommitment: 25
    ShortWindUp: lead
    DefaultRecoveryTicks: 20
  Poise:
    Max: 0.15
    RegenDelayTicks: 60
    RegenPerSecond: 0.05
    WindUpMultiplier: 1.5
    BlockedHitPoise: 0.05
    StaggerTicks: 30
    ImmunityTicks: 100

ThePredict 0.0.1 · release candidate. These pages describe this build, checked against its source code; it has not been verified on a live server yet.

ThePredict is an independent MythicMobs addon. Jev is TypeSafe's decision model; naming it does not imply endorsement. Fonts: Pixelify Sans, Inter and JetBrains Mono, under the SIL Open Font License.