ExcaliBug
Available

Relationship Web

NPCs who remember. Feelings each way between every pair of characters, grudges that fester, love that goes in steps, jealousy, families, and a screen to see it all.

var web := RelationshipWeb.new()
web.add_person("ana", {"pride": 80, "data": {"name": "Ana"}})
web.add_person("bo", {"data": {"name": "Bo"}})
web.link("ana", "bo", &"friend")
web.apply("bo", "ana", {"romance": 20})
print(web.ask_out("bo", "ana"))   # &"yes" or &"no": they answer from how they feel

var screen := RelationshipWebScreen.new()
add_child(screen)
screen.web = web

Get it: $5 on itch.io, with the demo village, 665 automated checks and a full README.

Try it free: Relationship Web Lite has feelings each way, grudges, days passing and saves, and a web view with a faint knight mark, all with the same API. Upgrading is replacing one folder, and your code and saves keep working. Lite's source is on GitHub.

Watch: the nine-minute tutorial on YouTube: feelings each way, grudges and time, love in steps (and the 87% chance that still came up no), affairs and jealousy, families from birth to death, and the screen. Everything in it is the real demo village, Thornbury, running live.

The Relationship Web tutorial on YouTube: "NPC love?! In Godot", Sir Debugalot beside a heart drawn as a relationship web

GDScript on the left; the village web it draws on the right

Sir Aldric selected in the web, with a card for each of his relationships: a one-sided crush, friendships, a feud

Sir Aldric asks Captain Brenna out: the odds of a yes, and the news that she said no

What it does

  • Feelings each way. How Ana feels about Bo and how Bo feels about Ana are separate, so a crush, a grudge or trust can be one-sided, and the screen shows it.
  • Personality does the maths. Volatile people swing harder, proud people hold grudges harder, forgiving people let go, loyal people's feelings last, insecure people get jealous, and attachment style changes how trust is won and lost.
  • Love goes in steps. Attraction, a crush, asking someone out (they answer from how they feel, and can say no), dating, a proposal, marriage. A yes against the odds strains the couple, and strained couples can fall apart on their own.
  • Families. Parents, children, siblings, partners. Pregnancies in and out of wedlock, with every relative reacting their own way. Births, deaths that leave memories and widows, children abandoned and families walked out on, adoption.
  • Jealousy that works itself out: wanting someone who's taken, someone wanting your partner, or your own insecurity.
  • Deterministic. Same seed, same calls, same web on every machine, and a saved and loaded web carries on exactly.
  • Fast. 2,000 people and 40,000 bonds at about 0.1 s for a busy day and 9 ms for a quiet one. The screen holds 60 fps at 500 people.

The family tree: marriages, the expecting, adopted and estranged children shown dashed

Fenwick and Odile: exes, a divorce she ended, and the grudges each still holds