Log inGet started
World

Banana 2077

Branchmain
Branchesmain
Commit49a1306fab

README.md

game.story.talk

The cast's everyday chatter in Banana 2077: the priority-0 talk provider each cast member falls back to when no quest (priority 50), romance (20) or shop (10) provider has anything to say.

  • T.install() registers R.addTalkProvider(id, 0, fn) for all eleven cast members and returns the unsubscribe functions. The Story component calls it in start() and runs the unsubscribes in onDestroy().
  • T.script(npc) builds a fresh VN script ({id, start, nodes}) for one NPC. It returns nil for anyone it has no lines for.
  • T.CHATTY lists jackie, judy, panam, river, kerry and dex. Each one has an affection-tiered greeting, a hub of topics (two unseen topics at a time, rotated), [ATTR N] check choices and a Give a gift branch. The gift branch lists R.inventory("gift") and reacts by R.giftValue (loved, liked or meh).
  • Every topic moves affection once, ever (flag story_aff_<npc>_<topic>). Kind answers add +2 to +5 and rude ones take away 3.
  • The romanced NPC gets partner lines. The other romanceables react once to V's choice (flag story_react_<npc>_<partner>).
  • T.VENDORS lists nana, kumquat, hiro, misty and byte. Each gets a single rotating line, since the shops slice adds "Browse wares" at priority 10.