Log inGet started
World

Rice and Shine: A Sengoku Assassination Sandbox

Branchmain
Branchesmain
Commit471737b433

README.md

make-an-assassination-contract

Makes a new Sealed Orders (assassinationKit) assassination contract (a new stealth mission) for a target the creator invents, from the idea to a mission played through twice: it designs the target and everything around him, writes the contract and its intel files, wires the scene, checks it, then plays it quiet and loud to prove the staged kill, the debrief and the grade all work.

What it does

  1. Survey. Reads the kit's guides, the contracts, exchanges, notes and conversations already in the world (so new ids do not clash), and the scene: its build file, where its cast lives, whether it already places a Mission, the named places and people in it, and the ground the NavMap covers. Changes nothing.
  2. Design. One plan every later job builds from: contract id, title, client, location, brief, par; the target with his look, 1-3 guards and a 2-4 stop routine; every named place with a position; the intel (a briefing row, an overheard earshotKit exchange, a loreKit note, a dialogueKit conversation) and what each reveals; 1-3 opportunities of different kinds (poison, heavyDrop, riggedSwap, impersonate, lure, sabotage, guardAway, doorOpen) with their find / prepare / wear / talk / reach / wait / trigger steps and a kill or opening outcome; exits (boat, cart, gate, rope, hatch), one open and one lockedBy an opportunity or intel; starts, outfits and gear with mastery unlocks; the mastery scale, rating table and screen style.
  3. Build, two jobs at once from the same names:
    • Data files: contracts/<id>.data/values.yaml (contract: assassinationKit.contract), each exchange at <id>/exchanges/<exchange>.data/values.yaml (contract: earshotKit.exchange, with key and grants), each conversation at conversations/<conv>.json with its strings in locales/en/ (and locales/pt-BR/), every .metadata described.
    • Scene wiring: a cast module with build() called (with pcall) from the scene's build: every new place a named marker entity, the target and guards as TD.guard(..., { preset = "hideGuard" }), speakers as townsfolk people, the informer with a dialogueKit.Talker, the note as a loreKit.Lore, a wardrobe for any wear step, hiding spots, the NavMap / stealthKit Director / EarshotSettings when missing, and the Mission via SO.place({ offer = "<id>", ... }) (or the id added to the scene's existing Mission's offer).
  4. Check (up to three rounds, with a fix job between): SO.reloadContracts() then SO.problems() empty; SO.checkContract(raw, id, { scene = true }) finds every place in the scene; require("earshotKit.api").loadAll() loads each exchange; a second rebuild duplicates nothing; zero tests run sealedOrdersTests green.
  5. Play quiet. In a sub-client: pick the contract, check the briefing, learn intel from its real sources (overhear, read, talk), walk the kill opportunity to the staged accident (targetDown with how = accident, the ink-splash frame), leave by an open exit, read the debrief lines, grade and mastery.
  6. Play loud. Again, with a guard knocked out where he is found, an alarm, and a held lethal takedown on the target: the grade must be worse, the alarm and body lines show, the knock-out itself costs nothing.
  7. Finish. Answers with the contract id, its files, places, opportunities, exits, the check results, both grades, what failed and any kit bugs.

The field-by-field reference every step points at is the guide how-to-make-an-assassination-contract-with-targets-opportunities-and-exits; the worked example is example-build-a-one-target-assassination-mission-from-an-empty-world, and the shipped contract contracts/one_bad_captain.data with its cast captain/cast.module is the shape each file copies.

What it needs

The assassinationKit package installed (it brings every kit it stands on) and a scene with ground and a player. Everything goes into authored source, so it survives a reload; nothing in the kit itself is edited.

Starting it

zero workflow start --name make-an-assassination-contract --args '{"target":"a toll-keeper who drowns debtors","setting":"a river crossing at dusk","opportunities":2}'

All args are optional: target, id, scene (default the startup scene), setting, opportunities (1-3, default 2), rating, screens. Then zero workflow next --runner <you> and zero workflow answer --request <id> --value <json> until it finishes; each request names the shape its answer must have.