feat(packages): ludic.npc - the other people in a place: kinds, spots, acts, names and lines as open registries (a kind's routine is steps by the hour - a spot, an act, how long - with its own start and plan as function values, readable from .lres), a census on the half hour by weight (after dark only who stays out) with an extra the place asks for, walking round what is in the way and never into the water or up a scramble, no act where the place says nobody stops, facing a player within notice and back to the errand, leaving only out of every player's sight, unique names, posts that never walk (a vendor), lines by prio and chance with the story's words through a port and choices, a guest's copy of a host's people; greeted, talked and arrived as facts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
73a376ac6c
commit
029a1ebba2
23 changed files with 1664 additions and 0 deletions
6
packages/ludic.npc/tests/lines.lres
Normal file
6
packages/ludic.npc/tests/lines.lres
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# lines.lres - the test's lines: a fisher's hush, the story's news when it has any, a greeting with
|
||||
# two choices, and the answer to the first
|
||||
hush { act: NPCA_FISH, prio: 3, text: "Shh." }
|
||||
news { prio: 2, fill: true }
|
||||
hello { prio: 1, text: "Morning.", choices: [{ text: "Any fish?", line: "fish_no", code: 7 }, { text: "Bye.", line: "" }] }
|
||||
fish_no { prio: -1, kind: NPCK_CAMPER, text: "Not today." }
|
||||
Loading…
Add table
Add a link
Reference in a new issue