Log inGet started
World

The Hernsew Lingster

Branchmain
Branchesmain
Commitc51c06f1f8

README.md

interpreter — the Lingster's ear

Attached to the Tongue anchor by the scene build. It renders nothing: it turns a heron's hail into an open encounter, speaks the line aloud if the sound slice has landed, takes the player's reading, and raises ANSWERED.

Wiring

hearsHAILED(stationId) → opens the beat at that post
GATE_OPENED(stationId) → closes it
PHASE("title" / "opening") → a new run resets the phrasebook
raisesANSWERED(stationId, correct) (through tongue.book)
writesRules.state[KEY.ENCOUNTER], Rules.state[KEY.LEARNED]

Answering

entity.find("Tongue").component.get("interpreter"):answer("eelbank.1")
-- or, from anywhere:
require("tongue.book").answer("eelbank.1")

Methods

:answer(optionId)give a reading; true when it is right
:openAt(stationId)open a post by hand
:hint()the hint for the open post, or ""
:resetRun()back to the starting phrasebook
:pollHail()the proximity stand-in, below

Fields

station, speaker, call, learnedCount, glyphCount, attempts mirror the book, so a screen or an inspector can read the beat without requiring the module. voiced speaks the lines through sound.voice when that slice is present. autoHail arms the proximity stand-in.

The proximity stand-in

The heron slice owns the hail. Until it lands, pollHail raises HAILED for whichever post the Lingster is standing at, reading KEY.LINGSTER_Z against Rules.HAIL_RADIUS, so the beat is playable on its own. The first time a hail arrives from anywhere else it switches itself off for good.