▣
module · drop-in viewer
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.
by·posted 19d ago
What it does
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()registersR.addTalkProvider(id, 0, fn)for all eleven cast members and returns the unsubscribe functions. The Story component calls it instart()and runs the unsubscribes inonDestroy().T.script(npc)builds a fresh VN script ({id, start, nodes}) for one NPC. It returnsnilfor anyone it has no lines for.T.CHATTYlists 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 listsR.inventory("gift")and reacts byR.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.VENDORSlists nana, kumquat, hiro, misty and byte. Each gets a single rotating line, since the shops slice adds "Browse wares" at priority 10.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.