How STM works

See, decide, act, learn: how STM plays

Many times a second, STM reads the game, picks the cheapest goal it can run, acts on it, and keeps notes on what happened. Each part below has a small working model you can click: the same ideas as STM, with sample data.

  1. See

    STM's addon shows the game's state as small coloured cells in a corner of the screen: health, the target, the bags, the fight. STM reads them from the screen, many times a second.

  2. Decide

    Every goal has a cost. Of the goals that can run right now, the cheapest one wins, and every other goal says why it waited.

  3. Act

    Key presses and clicks, like a player, and paths over a navmesh: a map of the ground with every mob camp priced in.

  4. Learn

    Every fight goes into a ledger, every decision into a feed, and every death into a post-mortem. The fixes come from them.

Goals

The cheapest goal that can run wins

STM keeps a ladder of goals, each with a cost: staying alive costs least, walking costs most. Every moment, each goal checks whether it can run, and the cheapest one that can, does. Change the world below and watch the choice move, with the reason every other goal waited.

  • Survival first, then the fight, rest, errands, the next pull, and last the walk
  • A tie goes to the order in your profile: repair before selling
  • A flee runs only toward a guard it can reach alive
goals · the cheapest one that can run winsdemo · sample data
The world right now, tap to change

Goals, cheapest first

  1. cost 3.1Flee to a guardruns now
  2. cost 4Fightoutranked: flee to a guard costs less
  3. cost 4.9Rest and eatwaits: in a fight
  4. cost 6Repair tripwaits: in a fight
  5. cost 6Sell tripwaits: in a fight
  6. cost 7Pull the next mobwaits: in a fight
  7. cost ~20Walk the grind routewaits: in a fight

Flee to a guard. The fight is being lost and a guard is close enough to reach alive, so it runs to the guard along the way it came.

Score

Where to level: the area worth the most an hour

For every level, the grind plan scores the areas STM can walk to by the experience an hour they are worth: the kills an hour it can make there, what each kill gives at your level, and the time lost walking. Mobs above your level cap are not targets, and neither are mobs standing in deep water. Pick a level and watch the winner move.

  • One number decides: experience an hour
  • Never above the level cap your profile sets
  • Learned the hard way: a bay of crocolisks scored high, was fought swimming, and cost a character
grind plan · the area worth the most an hourdemo · sample data

score = kills an hour × experience a kill × the share of the hour not spent walking · mobs up to +1 level

  1. Ridge gnolls levels 20–235,580 XP/h

    levels here: the best score

  2. Farmstead watchers levels 17–204,460 XP/h

    a lower score

  3. Forest spiders levels 24–273,200 XP/h

    a lower score

  4. Coast crabs levels 14–172,350 XP/h

    a lower score

  5. Bay crocolisks levels 22–25would be 8,610 XP/h

    refused: its mobs stand in deep water: no target

  6. Raptor ridge levels 27–30no target

    refused: its mobs are above your level cap

At level 24, Ridge gnolls wins: about 5,580 experience an hour.

Maps

Camps are priced like walls, roads like a shortcut

STM walks on a navmesh, a map of the ground it can stand on. Open ground costs three times a road, and the ground around a mob camp costs so much that the path bends round it: a longer walk beats a fight with four mobs at once. The same pricing guides sell trips, rests and the grind route.

  • Switch to the straight line to see the pulls it would cost
  • Mobs it never pulls are camps of their own on the map
  • With broken gear, every mob that would attack is walked round on the way to the smith
navmesh · camps priced like wallsdemo · sample data
The priced path follows the road round both camps: 400 yards, no pulls.roadGnoll campSpider neststartgrind spot
Path
400 yd
Pulls
0
Longer by
14%

Watch it think

Every choice, with its reason

The dashboard on your PC shows what STM is doing and why: the goal and its reason, the fight's verdict (time to kill against time to die), the target and why it was picked, and every event as it happens.

  • A fight read as lost becomes a flee, when a guard is in reach
  • Every target pick and every refusal is on record
dashboard · live viewdemo · sample data
Running · Grind modeWestfall coast

Level

19 · 64%

XP this hour

2,140

Kills

31

Deaths today

0

Now

Walk the route

A camp of four ahead: walking round it

Events

  • A route point inside a camp left out
  • Looted Coyote Meat and 4 copper
  • Killed Coyote · +268 XP
  • Fight: Revenge, Heroic Strike, Shield Block
  • Pull: Coyote (18), alone, a shot at 27 yd
  • Rest: out to clear ground, round the camps

Learn

Every death is explained, then fixed

When the character dies, STM writes a post-mortem: cause codes, the last seconds one by one, the mobs around and a screenshot. 680 deaths so far, each one analysed, and the fixes come straight from them.

  • Cause codes turn into rules STM follows
  • Step through the last seconds of an example
post-mortem · an illustrative exampledemo · sample data

Warrior, level 18

2 mobs · 38 s from pull to death
  • FIGHT_LOST_FROM_START
  • MULTI_MOB
  • FLEE_NO_GUARD
Health over the last 38 seconds, from 100% at the pull to 0% at the death.−38 sdeath

-20 s Flee starts. The nearest guard is 160 yd away, too far to reach alive.

Findings

  • The fight read as lost 4 s after it began: it should never have been pulled.
  • A second mob joined from 14 yd away, a camp-mate the pull did not count.
  • It fled with no guard in reach, took every hit from behind and turned to fight at 9% health.

What was fixed

  • Camps are mapped: a pull next to camp-mates is refused, and routes bend round camps.
  • A flee runs only toward a guard it can reach alive. Otherwise it turns and fights on.

Your phone

Check in from anywhere

Send /status from your phone, /stop to stop it and release every key, and /resume when you are ready. STM rings only when you need to act; milestones, deaths and an hourly digest arrive silently.

  • Screenshots, short clips and a live view when you ask
  • The same stop as the Pause key in the game
telegram · from your phonedemo · sample data
STMbot · online

STM is running on your PC.

Send /status any time, or /stop to stop it and release every key.

Level 19 reached.

New ranks trained, back on the grind route.

Under the hood

The rules that keep a character alive and moving, in plain words.

Roads first
Open ground costs three times a road on every path, so STM keeps to the roads where it can.
Never too high
It pulls mobs at most one level above the character, and elites only below its level. A mob that attacks is always fought back.
One at a time
A pull that would bring a second mob is refused, or taken from the edge of the camp with a ranged shot.
Casters
A caster is fought where it stands, and pulled only with no other mob near it.
The leash
A target that runs off is not chased into another camp: STM stops, shoots, and walks back if it does not come.
Water
A fight in the water is taken to the shore when the shore is close, and nothing is pulled from deep water.
Broken gear
With something broken, nothing is crafted, mined or scanned until the repair is paid, and the walk to the smith goes round every mob that would attack.
Clear ground
Rests and crafting happen away from mob spawns, never inside a camp.
After a death
The ghost comes back where no mob stands, after a look round.
Stalls
A wait that goes on too long rings your phone.
Money and bags
Junk is sold before the bags fill, repairs are paid, and whole stacks it does not need are sold.
Professions
Mining, smelting, blacksmithing, first aid and cooking happen along the way.