# Shards of Stone: Ash and Iron > A free real-time strategy game that runs in the browser (Next.js, a Three.js 3D renderer, a deterministic lockstep simulation), with 9 playable factions, campaigns, online multiplayer for up to 8 seats, and custom games built with The Forge, its map editor. Custom game logic is authored as triggers: a closed, typed JSON format of 39 events, 126 expressions and 111 actions. Maps can also carry sandboxed JavaScript or TypeScript through the public sos API. This is the machine-readable index for AI assistants and developers, following the [llmstxt.org](https://llmstxt.org) format. It is GENERATED by `tools/generate_modding_reference.ts` from the engine source and the documentation loader — every chapter link, id count, limit and gap below is read out of the code that serves it, and `npm run lint:modding-reference` fails when this file is stale. Do not edit it by hand. **If you are an agent and you only want one URL, use [/llms-full.txt](https://www.shardsofstone.com/llms-full.txt).** It is meant to be sufficient on its own: the terrain encoding, every type, every unit and building id, every trigger node, every validation issue code with its fix, and complete minimal map and mod files that a test validates and plays. Everything else on this page is optional detail. For the same content as queryable data rather than prose, use [/modding/catalog.v1.json](https://www.shardsofstone.com/modding/catalog.v1.json): ids, trigger nodes with their fields, issue codes, engine limits, terrain values and biomes in one JSON document. ## Terms - **The Forge**: the map editor, at /map-editor. Runs in the browser; drafts save locally without an account; publishing needs an account. Test Map is Ctrl+F9. - **Map**: a complete playable scenario (terrain, placed units, players, triggers, data overrides), stored as JSON. - **Mod** (`.sosmod`): a portable package of data overrides, triggers, sounds and models, applied on top of a map (formatVersion 2). - **Custom game**: a published or featured map, playable from /custom-games. - **Trigger node**: one event, condition/expression or action, addressed by its `k` field. The catalogue is closed: a map cannot add a node kind. ## The loop, in five lines 1. WRITE the map JSON. Start from a starter template below, never from a blank file. 2. VALIDATE it. Every error must be gone; warnings are advice. 3. PLAY it headlessly and ASSERT the outcome — a map that validates can be unwinnable. 4. Assert the LOSS as well as the WIN. "It ran" proves almost nothing. 5. FIX at the reported `path`; every issue carries a stable `code` (there are 93, each with a fix in /llms-full.txt section 9). ## Documentation chapters (53) Every chapter the site serves, in reading order, grouped the way the sidebar groups them. This list is generated from the loader, so it cannot fall behind the site. ### Start here - [Introduction](https://www.shardsofstone.com/docs/map-editor/introduction): What The Forge map editor can author, maps versus mods, what it deliberately cannot do, and the shape of the work from an empty grid to a published map. - [Your First Map](https://www.shardsofstone.com/docs/map-editor/your-first-map): A step-by-step walkthrough for someone who has never made a custom map: open The Forge, paint terrain, place gold and start positions, add one trigger, test it, save it, publish it and share the link. - [Interface](https://www.shardsofstone.com/docs/map-editor/interface): The module bar, the tool palettes, the outliner, the viewports and every keyboard shortcut that matters. - [Capability map](https://www.shardsofstone.com/docs/map-editor/capability-map): What you want a map to do and the node that does it, every entry checked against the live catalogue, plus an honest list of what is not possible yet. - [Glossary](https://www.shardsofstone.com/docs/map-editor/glossary): Every term these docs use that does not mean what you would guess, in one place. - [Frequently asked questions](https://www.shardsofstone.com/docs/map-editor/faq): The questions people actually ask first, answered in one place, with a pointer to the page that goes deeper. - [Your First Win Condition](https://www.shardsofstone.com/docs/map-editor/first-win-condition): Turning a map into a game: the built-in victory presets, when you need a trigger instead, the counter-and-outcome pattern every genre uses, and the seat rule that decides whether your victory actually ends the match. - [Your First Custom Unit](https://www.shardsofstone.com/docs/map-editor/first-custom-unit): Cloning a shipped unit into one of your own in the Data module, making it trainable, finding real ids instead of guessing them, and the did-you-mean suggestion that validates cleanly while giving you the wrong unit. - [Your First Mod](https://www.shardsofstone.com/docs/map-editor/first-mod): Turning changes you made on one map into a .sosmod that plays on any map: exporting from The Forge, what a package may contain, validating it, applying it by file or by link, and the multiplayer rule that keeps everyone in the same match. - [Publish and Iterate](https://www.shardsofstone.com/docs/map-editor/publish-and-iterate): Shipping the first version early, what the gallery tells you back, updating a published map in place without losing the old one, and building a repeatable check so a balance change cannot quietly break the map. - [Your first sandboxed script](https://www.shardsofstone.com/docs/map-editor/first-script): Write JavaScript or TypeScript in the Forge, test it in QuickJS, and remix Aces of Stone or Drop of Stone. - [Build a custom game](https://www.shardsofstone.com/docs/map-editor/build-a-custom-game): Combine map JSON, visual triggers and sandboxed JavaScript or TypeScript; reuse public arcade controllers, validate the result and understand the current engine boundaries. ### Build the world - [Creating a Map](https://www.shardsofstone.com/docs/map-editor/creating-a-map): Sizes, biomes, generated starting layouts, spawn points, the environment block and what a saved map actually contains. - [Terrain & Height](https://www.shardsofstone.com/docs/map-editor/terrain-and-height): Painting ground and water, the terrace elevation model, ramps, and the six ways a hand-edited height field goes wrong. - [Lava & Biomes](https://www.shardsofstone.com/docs/map-editor/lava-and-biomes): Lava as a terrain type, the one rule it imposes on a map, and how the eleven biomes differ from each other. ### Units & data - [Units & Properties](https://www.shardsofstone.com/docs/map-editor/units-and-properties): Placing units and buildings, the inspector, authored ids and tags, hero instances, spawners and ground items. - [Players & Teams](https://www.shardsofstone.com/docs/map-editor/players-and-teams): The per-seat roster, controllers, teams, starting resources, AI settings, map rules, and how to make a one-player map boot. - [Data Overrides](https://www.shardsofstone.com/docs/map-editor/data-overrides): Per-map changes to units, buildings, items, spells, upgrades and heroes: patching, cloning, merge rules and array operators, and what gets checked. ### Game logic - [Triggers](https://www.shardsofstone.com/docs/map-editor/triggers): Events, conditions and actions; variables, functions and hashtables; camera and interface actions; and combining JSON triggers with sandboxed JavaScript or TypeScript. - [Cutscenes](https://www.shardsofstone.com/docs/map-editor/cutscenes): Building an in-game scene from camera keyframes and timed lines, and the one rule that keeps a skipped cutscene from breaking a match. ### Presentation - [Custom Units & Models](https://www.shardsofstone.com/docs/map-editor/custom-units-and-models): Giving a custom unit or building a 3D model: modelUrl and mod: references, the limits a model must fit, animation clip naming, effect sockets, and what happens when a model fails. ### Test & publish - [Testing](https://www.shardsofstone.com/docs/map-editor/testing): Launching the map in the real engine, what to check before you call it done, and how to test a map that only misbehaves in multiplayer. - [Validation & Tooling](https://www.shardsofstone.com/docs/map-editor/validation-and-tooling): One validator, four front ends: the Validation module, the web validator, POST /api/validate and the command line. Plus the JSON Schemas, the Trigger Debug panel and a write, validate, fix loop for people and AI agents. - [Publishing](https://www.shardsofstone.com/docs/map-editor/publishing): Publishing to Custom Games from The Forge, what blocks it and why, share links, updating a published map, and what happens after: ratings, reports and moderation. ### Mods & assets - [Mods](https://www.shardsofstone.com/docs/map-editor/mods): What a .sosmod package is, the two sample mods line by line, applying a mod in single player, multiplayer and by link, dependencies, and exporting one from The Forge. - [Compatibility & Versioning](https://www.shardsofstone.com/docs/map-editor/compatibility-and-versioning): Every version number a map or mod carries, what the game enforces about each today, and the policy for how formats change without breaking published content. - [Asset Catalog](https://www.shardsofstone.com/docs/map-editor/asset-catalog): Finding the ids a map or mod can reference: unit and building ids to clone, model ids, sprite keys and sound ids, and how each one is checked. ### Genres - [The Genre Cookbook](https://www.shardsofstone.com/docs/map-editor/genre-cookbook): Eight custom-game shapes as recipes: the rules to set, the triggers to add, a trigger fragment checked against a real map, and one command per recipe that plays the map and asserts the result. - [Walkthrough: Tower Defense](https://www.shardsofstone.com/docs/map-editor/walkthrough-tower-defense): A read-through of the shipped tower defence showcase: its waves, its lives counter, the two triggers that can end it, and why a headless run of it loses. - [Walkthrough: Castle Fight](https://www.shardsofstone.com/docs/map-editor/walkthrough-castle-fight): A read-through of the shipped Castle Fight showcase: buildings that spawn their own army, income on a timer, and a castle poll that pairs victory and defeat across four seats. - [Walkthrough: Hero Arena](https://www.shardsofstone.com/docs/map-editor/walkthrough-hero-arena): A read-through of the shipped champion arena: a custom event between scoring and winning, chat-driven save codes, and a bot loop written entirely in triggers. - [Walkthrough: Survival](https://www.shardsofstone.com/docs/map-editor/walkthrough-survival): A read-through of the shipped survival showcase: a day and night cycle run on two named timers, a horde spawned at dusk and deleted at dawn, and a match decided on the sixth sunrise. - [Walkthrough: Deep Delve](https://www.shardsofstone.com/docs/map-editor/walkthrough-deep-delve): A read-through of the hand-authored horde showcase: four spawn regions, waves that scale by arithmetic, and a win condition that is one atTick node with no condition attached. - [Walkthrough: Tanks of Stone](https://www.shardsofstone.com/docs/map-editor/walkthrough-tanks-of-stone): A read-through of the hand-authored tank arena: five rounds counted by one death trigger, enemy movement written entirely in triggers, and a barricade field you shoot holes in. - [Walkthrough: Escape Maze](https://www.shardsofstone.com/docs/map-editor/walkthrough-escape-vault): A read-through of the Vault of Ash escape map: three routes that charge three different currencies, trigger-authored chase AI kept in a hashtable, and a clock tuned against measured route lengths. - [Walkthrough: Hero Siege](https://www.shardsofstone.com/docs/map-editor/walkthrough-hero-siege): A read-through of Siege of Ember Gate: five waves that each send a swarm and a ram at opposite targets, bounty paid to the killer, and a repair that buys back the past and nothing of the future. - [Walkthrough: Lane Race](https://www.shardsofstone.com/docs/map-editor/walkthrough-legion-lite): A read-through of Ironvale Legion: ten rounds against both lanes at once, where the only decision is what each round's gold buys, and income that pays back on round 7 of 10. - [Walkthrough: a spell brawl from scratch](https://www.shardsofstone.com/docs/map-editor/walkthrough-spell-brawl-script): A read-through of the Cinder Ring: Brink of Stone rebuilt on the public script API alone, with the pick, the shop, five spells, the shove, a ring that sinks into the lava, bots and the HUD all in one script. - [Build a city builder](https://www.shardsofstone.com/docs/map-editor/build-a-city-builder): Turn the city on for your own map, give it your own numbers, drive it from scripts and triggers, paint map layers and reshape the land. Cities of Stone is built this way. - [Build a racing game](https://www.shardsofstone.com/docs/map-editor/build-a-racing-game): Turn the race on for your own map: lay a circuit, choose the cars it offers, set the laps, the class and the hour. Wheels of Stone is built this way. - [Build a sailing game](https://www.shardsofstone.com/docs/map-editor/build-a-sailing-game): Turn the sea on for your own map: ports, fishing grounds, pirates, your own fish and your own story. Sea of Stone is built this way. - [Build a spell brawl](https://www.shardsofstone.com/docs/map-editor/build-a-spell-brawl): Turn the arena on for your own map: a round platform over the sky or the lava, what stands on it, more islands a round each, your own numbers and spells, the rounds and the casters it offers. Brink of Stone is built this way. - [Build a party game](https://www.shardsofstone.com/docs/map-editor/build-a-party-game): Make your own minigame party: games written as data from the same parts Grumbar Party uses, their arenas, their costumes and buttons, the big top round them and the biome each is drawn in. - [Build a horde run](https://www.shardsofstone.com/docs/map-editor/build-a-horde-run): Turn the run on for your own map: heroes in the middle of a field, a horde that closes in, bosses on the clock, your own monsters and bosses, your own numbers, the heroes it offers and the zones its lobby lists. Shard Survivors is built this way. ### AI & automation - [Working with AI Assistants](https://www.shardsofstone.com/docs/map-editor/ai-creators): Using a chat assistant or a coding agent to draft triggers, data overrides and mods: what to give it, how to bring its output into The Forge, and how to check the result before you play. - [The AI Agent Toolkit](https://www.shardsofstone.com/docs/map-editor/ai-agent-toolkit): The agent-facing half of AI authoring: the validate → play → assert loop, the starter templates, the four engine facts no schema will tell you, and what an agent gets wrong on its first attempt. ### Reference (generated) - [Trigger reference](https://www.shardsofstone.com/docs/map-editor/trigger-reference): Every trigger event, expression and action: its JSON kind, editor sentence, fields and a minimal valid example. - [Troubleshooting by error code](https://www.shardsofstone.com/docs/map-editor/troubleshooting): Every code the validator can report, what it means and how to fix it, plus which ones stop a map loading at all. ### Advanced - [Web APIs, Embedding & Headless Runs](https://www.shardsofstone.com/docs/map-editor/api-reference): The HTTP endpoints for community maps, validation and the asset catalogue; embedding the game in an iframe with postMessage; and running matches headlessly from a checkout of the repository. - [Engine Internals & Events](https://www.shardsofstone.com/docs/map-editor/engine-hooks): What you can hook from a map, what you can hook from a page embedding the game, and what needs a fork of the engine: the event bus, adding systems, and the determinism rules a fork must follow. - [Determinism for authors](https://www.shardsofstone.com/docs/map-editor/determinism): Why the same map must produce the same result on every machine, what the engine does to guarantee it, and the handful of habits that still matter when you author triggers. - [Performance and limits](https://www.shardsofstone.com/docs/map-editor/performance-and-limits): The real per-tick budgets a map may spend, every hard cap with its live value, what happens when you cross one, and how to see it happen. - [Security model](https://www.shardsofstone.com/docs/map-editor/security-model): What a custom map may and may not do to the machine that loads it, why each boundary exists, and what is checked where. Plus the [docs hub](https://www.shardsofstone.com/docs), which lists the non-authoring pages too. ## What an authored map cannot do yet (4) Generated from the `ABSENT` registry in `src/app/docs/map-editor/absentCapabilities.ts`, which a test fails the moment any node matching one of these lands — so a gap listed here is still a gap. Do not plan around anything else being missing; in particular damage detection and modification, ability and cast events, an order-issued event, item creation and inventory queries, hero XP and level writes, unit stat writes, floating text, one-shot visual effects, multiboards and UI frame click events all EXIST. [Capability map](https://www.shardsofstone.com/docs/map-editor/capability-map) carries the same list as a table beside what to use instead, and is checked in both directions. - Granting a research mid-match. - Taking vision away. - Changing cliff height or pathing blockers mid-match. - Turning ground into open sky mid-match. The Forge Scripts module runs sandboxed JavaScript and TypeScript through QuickJS. The public sos API exposes engine operations, timers, hooks and custom-runtime controllers. DOM, network, clocks, imports and eval are unavailable inside the sandbox. ## Schemas and validation - [Map format schema](https://www.shardsofstone.com/schemas/v1/map-format.json): JSON Schema for a serialized map. - [Trigger script schema](https://www.shardsofstone.com/schemas/v1/trigger-script.json): JSON Schema for `TriggerScript`, one branch per node kind. - [Data overrides schema](https://www.shardsofstone.com/schemas/v1/def-overrides.json): JSON Schema for `DefOverrideSet`. - [Mod package schema](https://www.shardsofstone.com/schemas/v1/mod-package.json): JSON Schema for `.sosmod` packages. - [Validator](https://www.shardsofstone.com/tools/validator): in-browser validator for maps, triggers, data overrides and mods. - [Agent catalogue](https://www.shardsofstone.com/modding/catalog.v1.json): every unit, building, item, hero, spell and upgrade id with the fields an author needs; the whole trigger node catalogue with every field; all 93 issue codes with their class and fix; the engine limits, terrain values and biome list. One fetch, no pagination. - Asset catalogue API: `GET https://www.shardsofstone.com/api/assets/catalog?category=models|sounds|units|buildings|spells|items&race=&search=`. - Validation API: `POST https://www.shardsofstone.com/api/validate` with either a raw JSON body, or `{ "kind": "auto" | "map" | "triggers" | "defOverrides" | "mod", "content": }`. Returns HTTP 200 `{ kind, label, valid, errors[], warnings[], engineVersion, formatVersion }` whether or not the content is valid, including content that is not JSON (a `json-syntax` error); `kind` is null when the kind could not be told. Each issue has `severity`, `code`, `path`, `message` and optionally `suggestion`. No key; CORS open; 30 requests per minute per IP; request body at most 4 MiB (413 above that). - Validator limits: a map 4 MiB (`map-large` warning over 1 MiB), a trigger script or override set alone 1 MiB, `meta.size` 8 to 1024, 20,000 placed entities, 64 spawn points, 2,000 regions per trigger script; a report lists at most 500 errors and 500 warnings, then one `too-many-issues`. - Mod limits: at most 4 MiB per package, each embedded `data:` URI at most 256 KiB, `sounds`/`models` URLs must be `https://`. - Validation CLI (from a checkout): `npx tsx tools/validate.ts [--json] [--kind auto|map|triggers|defOverrides|mod]`. Exit 0 = no errors, 1 = errors, 2 = usage. ## modkit: validate, play and assert from the command line `modkit` lives at `packages/modkit` in the repository and runs with no install step: `npx tsx packages/modkit/src/cli.ts `. It is the only way to find out whether a map that validates can actually be won, which validation cannot tell you. - `validate [--against ] [--kind auto|map|triggers|defOverrides|mod] [--json]` — the same validator as the website and the editor. - `play [--mod file.sosmod]... [--drive seat=cmds.json]... [--assert expr]... [--ticks N] [--seed S] [--json]` — runs a real headless match. Exits non-zero on an engine error, a per-tick budget cap, a broken reference, a truncated event cascade, or a failed assertion. Assertions are parsed, never evaluated as code: `winner=`, `state=`, `ended=true|false`, `var:`. - `catalog [--kind units|buildings|items|heroes|spells|upgrades|triggers]... [--ids-only] [--json]` — the same data as `/modding/catalog.v1.json`, locally. `--ids-only` prints the ids. - `new [--out …]` — a starter map that already validates. The genre names copy a whole template directory, map and agent notes together. - `pack [--out file.sosmod]` — build a mod package. - `mcp` — the same tools over a local stdio MCP server, for an agent with tool calling. ## Starter templates you can copy (5) In the repository at `packages/modkit/templates//`, and reachable as `modkit new `, which copies the directory. Each one validates with **zero errors** AND plays to a real victory in the real engine, asserted against a headless match by `packages/modkit/test/templates.test.ts` — which is the bar, not validation. Each directory carries an `AGENTS.md` describing what the map teaches and where to change it. Start from one of these rather than from a blank file. They are not warning-free: the ones that play a sound carry `trigger-sound-first-play-silent` warnings (three to eight each), because the first play of a sound a client has not downloaded is silent. That is advice about audio polish, not a fault in the map, and it is a good example of the difference: fix every error, read every warning, and decide. - `arena` (arena / deathmatch): Two squads fight in a walled ring. First side to five kills wins; the fallen respawn. - `cinematic` (cinematic): A 45-second scripted opening: fade, camera moves, time-of-day change, dialogue, then a scripted end. - `melee-objective` (melee / objective): Two seats, a normal economy, and one scripted objective: hold the centre shrine for 20 seconds. - `survival` (survival): Hold a camp against four escalating night raids that spawn on a ring at random bearings. - `tower-defense` (tower defence): Three escalating creep waves walk a dirt lane. Leaks cost lives; surviving all three wins. ## Example maps (10) Complete, shipped maps to read and copy patterns from — every one of them has a walkthrough chapter, and every one is covered by the validator and by an outcome test. Read the walkthrough for what the map is doing and why; read the JSON for exactly how. - [Canyon Holdout Tower Defense](https://www.shardsofstone.com/maps/tower-defense-showcase.json) — `tower-defense-showcase.json`, walked through in [Walkthrough: Tower Defense](https://www.shardsofstone.com/docs/map-editor/walkthrough-tower-defense): Defend the Mountain Hold! - [Castle Fight: Iron vs Scrap](https://www.shardsofstone.com/maps/castle-fight-showcase.json) — `castle-fight-showcase.json`, walked through in [Walkthrough: Castle Fight](https://www.shardsofstone.com/docs/map-editor/walkthrough-castle-fight): Castle Fight-style lane battle (2v2, playable solo vs bots). - [Champions of the Ring](https://www.shardsofstone.com/maps/hero-arena-showcase.json) — `hero-arena-showcase.json`, walked through in [Walkthrough: Hero Arena](https://www.shardsofstone.com/docs/map-editor/walkthrough-hero-arena): Warlock-style champion arena (4-seat FFA, playable solo vs 3 bot champions). - [Nightfall Hold](https://www.shardsofstone.com/maps/survival-showcase.json) — `survival-showcase.json`, walked through in [Walkthrough: Survival](https://www.shardsofstone.com/docs/map-editor/walkthrough-survival): Vampirism / Island Defense survival (co-op, playable solo). - [Deep Delve: Survivors](https://www.shardsofstone.com/maps/deep-delve-showcase.json) — `deep-delve-showcase.json`, walked through in [Walkthrough: Deep Delve](https://www.shardsofstone.com/docs/map-editor/walkthrough-deep-delve): Subterranean 2D horde survival (Vampire Survivors style). - [Tanks of Stone: Steam & Steel](https://www.shardsofstone.com/maps/tanks-of-stone-showcase.json) — `tanks-of-stone-showcase.json`, walked through in [Walkthrough: Tanks of Stone](https://www.shardsofstone.com/docs/map-editor/walkthrough-tanks-of-stone): Arcade top-down tank arena combat inspired by Battle City and Wii Play Tanks. - [Vault of Ash — Escape](https://www.shardsofstone.com/maps/escape-vault.json) — `escape-vault.json`, walked through in [Walkthrough: Escape Maze](https://www.shardsofstone.com/docs/map-editor/walkthrough-escape-vault): Two delvers, one tight minute, three ways to pay. - [Siege of Ember Gate](https://www.shardsofstone.com/maps/hero-siege.json) — `hero-siege.json`, walked through in [Walkthrough: Hero Siege](https://www.shardsofstone.com/docs/map-editor/walkthrough-hero-siege): Hero siege for one or two champions: 5 waves, each with a swarm that carries the bounty and a ram that carries the gate's death. - [Ironvale Legion](https://www.shardsofstone.com/maps/legion-lite.json) — `legion-lite.json`, walked through in [Walkthrough: Lane Race](https://www.shardsofstone.com/docs/map-editor/walkthrough-legion-lite): Legion-TD-style lane race: 10 rounds hit both lanes at once, and every round's gold can be spent now, saved for a tier jump, or turned into income that pays back on round 7. - [Cinder Ring](https://www.shardsofstone.com/maps/brink-creator-example.play.json) — `brink-creator-example.play.json`, walked through in [Walkthrough: a spell brawl from scratch](https://www.shardsofstone.com/docs/map-editor/walkthrough-spell-brawl-script): Brink of Stone rebuilt from scratch on the public script API, to open in the Forge and remix. - [featured.json](https://www.shardsofstone.com/maps/featured.json): the whole featured shelf, with each map's play URL. It also carries perf and lockstep fixtures (`stress-ffa-*`, `*-nodes-fixture`) — those are test rigs, not patterns to copy. - Minimal, copy-able map and mod files, each validated and played by a test, are in [/llms-full.txt](https://www.shardsofstone.com/llms-full.txt) section 3. ## Engine rules that affect authored content - Fixed 20 ticks per second (50 ms). Trigger durations are in TICKS: 200 ticks = 10 seconds. Cutscene timings are the exception: a scene's `durationSec` and a line's `t` and `hold` are in seconds. - Seats are 0 to 7. `8` is the creep owner, not a seat, and observers have no seat. Never infer a seat from array order. - Tower defense waves: create the wave's units, then give them a single `move` order to the goal region, not `attack_move` (attack-moving creeps stop to fight towers and can besiege the maze instead of running it). - Every client in a multiplayer match simulates the whole game and compares state hashes to detect desyncs, so anything a trigger does must be deterministic. - Triggers are typed JSON. Optional JavaScript/TypeScript runs in pinned QuickJS through the public sos API; scripts cannot eval, import modules or access a clock, network or DOM. - Triggers evaluate in authored order; unit groups are sorted lists of entity ids. - Data overrides install into a per-match registry and do not change the base game. - A placed entity that overlaps another footprint FAILS TO SPAWN and vanishes with no runtime error. The validator reports `overlapping-footprint`; treat it as an error, not housekeeping. ## Playable factions (9) The race ids a seat may pick, as written in `players[].race` and as the prefix of that race's unit and building ids. 443 unit types and 503 building types in total; every id is listed in /llms-full.txt section 4 and in the agent catalogue. - `dark_elf`: 25 units, e.g. Deep Singer, Shadow Blade, Umbral Shade, Shadow Archer, Umbral Cleaver, Stone Worm - `dwarf`: 28 units, e.g. Miner, Ironguard, Crossbowman, Ram Rider, Royal Guard, Steam Cannon - `goblin`: 27 units, e.g. Peon, Brawler, Spirit Ancestor, Bomb Lobber, Warg Rider, Ogre Brute - `high_elf`: 23 units, e.g. Crystal Shaper, Crystal Guard, Crystal Bowman, Solar Guard, Crystal Golem, Crystal Walker - `human`: 27 units, e.g. Ironreach Arbalester, Thorne's Gateguard, Lamplighter, Sunwarden Flamecaller, Peasant, Man-at-Arms - `lizardmen`: 22 units, e.g. Scaleling Worker, Saurian Warrior, Scaleling Skirmisher, Sun Guard, Ankylodon, Tyrant Lizard - `ratmen`: 22 units, e.g. Tunnel Digger, Trench Rat, Clockwork Rat, Long-Rifle Marksman, Ironvermin, Spark Cannon - `undead`: 21 units, e.g. Ghoul, Skeleton Warrior, Skeleton Archer, Death Knight, Vampire, Bone Catapult - `wood_elf`: 22 units, e.g. Grove Tender, Bladedancer, Heartwood Archer, Wildwood Blademaster, Great Stag, Stag Chariot Unit ids also exist for `creep`, `neutral`. Those are NOT seatable races: a `players[].race` must be one of the 9 above, while creep and neutral units are placed directly or spawned by a trigger, owned by `8` or by whichever seat the author names. ## Play - [Play in the browser](https://www.shardsofstone.com/play): no install; guests can play without an account. - [Custom Games](https://www.shardsofstone.com/custom-games): featured showcase maps and published community maps. - [The Forge](https://www.shardsofstone.com/map-editor): the map editor. - [Developer blog](https://www.shardsofstone.com/blog): engineering write-ups on how the game is built.