exchange.dataType
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 o…
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.
| field | meaning |
|---|---|
id | the exchange's id, used by Earshot.play, Earshot.heard and events |
title | a short label for logs and the ear meter (default: the id) |
speakers | entity 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) |
radius | earshot in metres from the speaker of the line (default: the EarshotSettings radius, 7) |
trigger | meet (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, cooldown | once only (default), or again cooldown seconds after it last ended |
key | the line that counts as heard (default: the last) |
grants | strings 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"]
Scoped to this part · feeds back into the world's score.