World StatesReport
English:World States · Game Mechanics
The world remembers whom you killed, captured and freed, then rewrites towns the next time you pass, and also decides whether squads of that faction still turn up in the wild. The half-destroyed, ruined and prosperous states in location entries are all results of this system.
Kenshi has no main storyline, and no quest log tells you "you have changed the world". The continent keeps its books in a very quiet way, called World States. Whom you killed, captured and freed are all entered in the ledger, and the next time you walk into that area, the world remakes itself according to the books.
Only two kinds of thing are changed by the books:
- Town versions. A whole town is replaced with another version, with buildings, shops, residents and guards all swapped together; the game calls this a town override.
- Squads in the wild. Whether that faction still turns up squads in the wilderness, how many, and whether certain raids still come.
How to trigger it
The most direct way is to touch the faction's leader. A small faction is usually propped up by one person, and once he is cut down, the squads in the wild drop sharply, and bases are destroyed or taken over by others.
Big factions are not so easily dismissed. Power in the Holy Nation and the United Cities is split among several people, and killing one does not bring collapse. Worse, if you go after a secondary leader while the main leaders are alive, the other side sends attack squads, each wave stronger than the last, climbing all the way to the largest scale, and then coming once every few days to weeks.
The people named in the ledger are roughly as follows.
When an army loses its command, a batch of motley units is swapped into the wild. When the Holy Nation falls into disorder it spawns Lost Paladins, and when the United Cities do it spawns Ronin samurai bandits.
Kill, imprison, release
This section is where mistakes are most easily made in practice.
In most cases, killing and locking up have the same effect. When the condition wants "this person is gone", being put in jail counts. Conversely, when the condition wants "this person alive and well", it means alive and free; being kept in a cage does not count.
So releasing someone works. Let a locked-up leader out, and the effects tied to him are usually rolled back, the squads in the wild return, and some towns switch back to the old version. It looks like a way deliberately left for playstyles such as "rescue the leader". Some overrides are exactly the opposite, requiring you to capture the person first to trigger them, and only if you release him afterwards does the override stay.
Some events recognise only one method:
- The bandit demands brought by the Dust King stop only when he is dead; locking him up does nothing.
- The raid and rescue events of the Western and Southern Hive recognise the Queen being kidnapped; killing her does not trigger them.
Even if you recruit a named person in the ledger into your own squad (Seto and Hoshi are examples), the ledger still counts. Being on your squad does not mean he has vanished from the world.
The words for town states
The "Town Override" field in each location entry uses a fixed vocabulary.
| State | Rough meaning |
|---|---|
| Famine | The town is still there and the flag unchanged, but supply lines are cut, and everyone from gate guards to civilians is malnourished |
| Half-destroyed | Some buildings are rubble, shops shrink, garrisons and patrols decrease, and control mostly remains with the original faction |
| Civil war | Two sides of the town cut each other down. The civil war in Sho-Battai is actually a combination of "famine plus half-destroyed" |
| Destroyed / Ruins | The whole settlement falls, its residents dead or missing |
| Prosperous | See the next section; it is not guaranteed to be better than before |
| A faction name | For example "Empire Peasants", "Free Traders", "Shek Kingdom", "Cannibals", meaning someone else has taken the place |
A town can carry several versions. When conditions hold at the same time, the game picks the one with the most, most specific conditions, and the player cannot choose. Bad Teeth is one of the examples with the most options, five versions in order being half-destroyed, destroyed, Shek Kingdom, Kral's Chosen and United Cities.
"Prosperous" does not mean better
This is the most common misreading. A version labelled "Prosperous" does not mean the town is richer than before; the buildings may be more ruined and the residents thinner. The label is relative: among all possible versions of that place, this one counts as the best.
Drifter's Last is a clean example. After Lady Merin and Slave Mistress Grace both fall, the town passes to the Free Traders, gaining guards, a police station, an independent bar and a thieves' guild, with defences tighter than in the Empire era. Another "half-destroyed" version cuts down only the nobles without touching the supply chain, and the result is ten buildings turned to rubble.
Factions cannot really be deleted
Most factions cannot be wiped from the world. When the leaders are all dead, the original squads are replaced by weaker "remnants", and some settlements still fly their flag.
Can be cleared out completely: Skin Bandits, Reavers, Manhunters, slave hunters, the Traders Guild, and possibly the Yabuta Outlaws. After the leader falls, wild squads, settlements, camps and events all return to zero.
Nearly cleared out: the Gorrillo Bandits, Anti-Slavers, Black Dragon Ninjas, Hounds, Thrall Masters, Fishmen and Slave Traders. Wild squads return to zero, but a few nominal settlements or raids remain.
Always keep a card up their sleeve:
| Faction | What cannot be beaten away |
|---|---|
| Holy Nation | Holy Farms, Watchtowers and Narko's Trap keep operating as usual |
| United Cities | Tengu's Vault and Farming Villages always exist, and always belong to the United Cities |
| Anti-Slavers | Spring |
| Flotsam Ninjas | Scout Posts |
| Berserkers | Berserker Village, and possibly Admag and Squin (barely functioning) |
| Band of Bones | Exile Camp, and possibly Grayflayer Village |
| Shek Kingdom | Last Stand and the Great Fortress (the latter only barely holding on) |
The rest, such as the Berserkers, Band of Bones, Kral's Chosen, Red Sabres, Swamp Ninjas, Crab Raiders, Skeleton Bandits and Scavengers, simply keep appearing as remnants once beaten down.
Community compilations point out that three kinds of raid may never stop whoever you deal with: Wrath of God, Invincible Challenger and Invincible Revenge. This is currently unconfirmed.
Doing it the other way: building up a faction
"World State routes" describe the opposite playstyle, enlarging a faction's territory. After a certain combination is achieved, that faction's influence expands, and routes for different factions can coexist, even reinforcing each other.
Factions that can take routes fall into two tiers. The major factions are the Holy Nation, United Cities, Shek Kingdom and Traders Guild, and the minor factions are Kral's Chosen, Flotsam Ninjas, Rebel Farmers, Anti-Slavers, Crab Raiders, Reavers, Skeleton Bandits, Skin Bandits and the Southern Hive.
Confirm before you act
Accounts of this point conflict. The Heft entry says buildings bought by the player cannot avoid being rewritten, yet the general rule for town overrides says buildings bought by the player will not be destroyed. The two flatly contradict each other, and the game does not reconcile them. To buy property in a town that will be overridden, it is best to save first and verify it yourself.
Known relatively safe places to buy property are mostly controlled by the Tech Hunters or other small factions, including Black Scratch, Mongrel, Mourn, Mud Town, The Hub, the various Waystations and Flats Lagoon.
Also, in some towns the version change happens only when you enter the town for the second time, for example the pairs Holy Mines with Slave Traders and Okran's Shield with Reavers, so what you see the first time is not necessarily the final look. This is a claim circulating among players and is currently unconfirmed.
Data and Formulas
The following is the full data for players who want to dig deeper.
A world state is a separate kind of record in the game data, 152 in total across all versions. Each is made of several "conditions", written in four ways:
| Condition | Test | Count |
|---|---|---|
| Someone is in a state (NPC is) | One of dead, alive, imprisoned | 113 |
| Someone is not in a state (NPC is NOT) | State not equal to the given value | 60 |
| A faction is a player ally (player ally) | Yes or no | 30 |
| A faction is a player enemy (player enemy) | Yes or no | 8 |
- A record holds only when all its conditions hold.
- Most-cited uses: 53 records are used by squad templates to decide wild squads, 47 by towns to decide version changes, and 75 by faction campaigns to decide whether a raid can launch.
- "Alive" means the state is alive; imprisoned and dead are both not. So "someone is not alive" covers both death and imprisonment. This is why killing and imprisoning are mostly equivalent.
- Only 7 records use the imprisoned state on its own, including Esata, Emperor Tengu, Phoenix, Longen and the two Hive Queens, so these events can tell death from imprisonment.
- 61 are marked "requires player involvement". Who sets this flag in the game code and how it is actually judged is currently unconfirmed.
How a town's version is chosen: when a zone loads, each non-player town checks its list of candidate versions. A candidate needs all its conditions to hold and must not be the version already in use. A candidate's weight equals the number of its conditions, the largest is taken, and a tie goes to the one listed first. So the most specific wins; it is not random. For example, Squin's three candidates:
| Candidate version | Conditions that hold | Conditions |
|---|---|---|
| Destroyed | Esata absent, Flying Bull absent, Mukai absent | 3 |
| New leader | Esata absent | 1 |
| Takeover | Esata absent, Flying Bull present, Mukai absent | 3 |
Version changes walk down one step at a time, and the new version after replacement may have a candidate list of its own. The check happens at the moment a zone loads, so after releasing someone you must wait for that place to reload before you see the rollback.
Raids and wild squads: before a campaign launches, its world state is checked, and if it fails, the waiting raid is dropped on the spot. When a squad template's world state fails, it does not enter the draw table for wild squads, which is the source of the original squads vanishing and remnants appearing after a leader's death.
Research Notes
- The old draft said "when conditions hold at the same time, the one with the highest priority is taken"; the game data's rule is that the one with the most conditions wins, with ties going to the first listed, and it was changed to that.
- The old draft said "killing and imprisoning are equivalent in most cases"; the source is that the "not alive" condition covers both death and imprisonment, and there are also 7 conditions recognising only imprisonment and 26 recognising only death, which have been added.
- "Prosperous" being a relative label comes from community compilations and has no direct definition in the game data.
- The three never-ending raids and "switches only on the second entry to the town" have no corresponding entries in the game data and are marked unconfirmed.
- The actual function of the player-involvement flag: the one who sets it has not yet been found in the reverse-engineered data (world/F32).
- The links for "Esata" and "King Gurgler" now use this site's entry titles.