assassinationKit.package
- ..
- .metadata473 B
- README.md3.9 KB
- schema.yaml4.8 KB
This package holds more than this page lists. See all of its files in its world.
README.md
contract (assassinationKit data contract, Sealed Orders)
One assassination contract, written as data: one <id>.data/values.yaml per contract with contract: assassinationKit.contract. Sealed Orders reads every contract file in the world, checks it, and shows it on the contract select screen.
Places (at) are the names of entities in the mission scene: a target's routine stops, opportunity props, exits and start points. Move the entity and the contract follows.
| field | meaning |
|---|---|
id, title | the contract's id and its name on the board |
client, location, brief | who ordered it, where, and the briefing text |
scene | the scene to load for it (empty = the current scene) |
rating | the rating table to grade it with (empty = the world's choice) |
hidden | true = offered only by a Mission whose offer names it (examples, test contracts) |
par | seconds; finishing faster earns the time bonus |
lexicon[] {key, word} | rename words for this contract (target, opportunity, exit, intel, tier names...) |
targets[] | {id, name, entity, title, portrait, description, traits[], guards[], routine[{at, stay, doing}]} |
intel[] | {id, title, text, source (overhear, note, talk, search, briefing), ref, reveals[{opportunity, target, exit}]} |
opportunities[] | {id, kind, title, hint, target, hidden, at, steps[{id, kind, text, at, item, role, ref, hold}], outcome{type kill or opening, effect, text, opens[]}} |
exits[] | {id, kind (boat, cart, gate, rope, hatch), title, at, text, lockedBy} |
starts[] | {id, title, at, text, unlock (mastery level), outfit} |
outfits[] | {id, title, role (a disguiseKit role), variant, text, unlock (-1 = found in the level only)} |
gear[] | {id, title, item (inventoryKit item) or lure (stealthKit lure), count, text, unlock} |
mastery[] | experience needed for mastery levels 1, 2, 3... |
Step kinds: find (pick up item or search the entity at), prepare (use item at the prop at), wear (be dressed as role), talk (finish a dialogueKit conversation ref), reach (stand at at), wait (until the target reaches at on his round), trigger (set it off at at).
lockedBy on an exit names an opportunity id or an intel id; the exit stays shut until that opportunity ends or that intel is learned.
Translating a contract
Any text field (titles, brief, name, description, traits, doing, intel and step text, hint, outcome.text, lexicon word...) may hold a catalog key instead of the words: "@<namespace>.<key>". It reads as i18n.t("<namespace>.<key>") in each player's language, and every key in the contract is read again when the language changes, so no code is needed:
values:
id: one_bad_captain
title: "i18n:one_bad_captain.title"
intel:
- { id: the_round, title: "i18n:one_bad_captain.intel_round_title", text: "i18n:one_bad_captain.intel_round_text", source: briefing }
// /locales/en/one_bad_captain.json // /locales/pt-BR/one_bad_captain.json
{ "title": "One Bad Captain", ... } { "title": "Um Capitão Ruim", ... }
A world's catalogs go in /locales/<lang>/<namespace>.json (one namespace per contract is tidy); a package's in its own locales/. Places (at, entity, guards) are entity names, not text, and stay as written. Code that needs the key itself (to send it to other players, each of whom reads it in their own language) asks require("assassinationKit.lexicon").raw(row, "text"); Lexicon.text(s) reads a key or plain text.
Sealed Orders checks each file beyond this schema (unknown opportunity or exit kinds, places that are not in the scene, a reveal naming an id that does not exist) and names the field at fault, e.g. opportunities[2].kind: "posion" is not an opportunity kind (poison, heavyDrop, ...).