Log inGet started
World

Sealed Orders: Assassination Contracts, Opportunities, Exits and Ratings Kit

README.md

exchange (earshotKit data contract)

An overheard conversation: NPCs talking to each other that a player can eavesdrop on for gossip, intel or clues. One <id>.data/values.yaml per exchange, bound with contract: earshotKit.exchange, anywhere in the world. earshotKit finds every one (Earshot.loadAll, automatic on first use) and checks it, naming the field at fault.

fieldmeaning
idthe exchange's id, used by Earshot.play, Earshot.heard and events
titlea short label for logs and the ear meter (default: the id)
speakersentity names of who talks, in order; found with entity.find
lines[]{ by, text, hold? }: by is the speaker's 1-based index (or speaker: "Name" instead; default: alternate), hold seconds on screen (default: reading time from the word count, 1.8 to 7.5 s)
radiusearshot in metres from the speaker of the line (default: the EarshotSettings radius, 7)
triggermeet (every speaker within meetRange of every other, default 3.5 m), place (speaker 1 within placeRadius of the entity named at, optionally between hours from and to of townsfolkKit/worldClockKit time, e.g. "21:00"), manual (only Earshot.play)
repeat, cooldownonce only (default), or again cooldown seconds after it last ended
keythe line that counts as heard (default: the last)
grantsstrings handed to every listener with the heard event (clue ids, quest flags, intel)

In a data file by is a number (by: 2); to name the speaker write speaker: "Guard B" instead. From code (Earshot.define) by takes either.

contract: earshotKit.exchange
values:
  id: docks_gossip
  speakers: ["Guard A", "Guard B"]
  trigger: meet
  lines:
    - { by: 1, text: "Captain's ship comes in at midnight." }
    - { by: 2, text: "Pier nine again? The usual crates?" }
  grants: ["intel_docks_midnight"]