We have a Steam curator now. You should be following it. https://store.steampowered.com/curator/44994899-RPGHQ/

How to model relationships with NPCs?

No RPG elements? It probably goes here!
Ignore Topic
User avatar
Cipher
Posts: 1231
Joined: Jan 6, '24

Geolocation

Post by Cipher »

Norfleet wrote: ↑ October 24th, 2026, 06:48
Cipher wrote: ↑ October 24th, 2026, 05:41
I agree with this. Perhaps the cleric is more agreeable and easy going but will completely disavow anything considered sin by her religion and some sins would make her leave your party for good and/or antagonize you on the spot. Whereas the warrior is a little sarcastic and keeps it to himself but once you earn his loyalty, very little things would shake it. Maybe the warrior only even opens up if you help him with a personal quest, like Wrex.
In other words, he's an NPC with specific, prescripted trigger events and a quest, and otherwise emits precanned lines, upon which you project a relationship. The relationship is as illusionary as the ones people have with Chad Gippity. You literally would have more of a relationship with a virtual pet, since at least the pet would run away or die if subjected to virtual mistreatment, and can be trained to perform tricks. Your NPC companion, on the other hand, gives zero shits if you Fus Ro Dah them off a cliff for the lulz. They are nothing more than a meatshield, packmule, a source of quests and reward perks, and a test of what lines to say to get them, and they will never ******* learn to get off your *** and stop blocking the doors.
No. That's the thing, they WOULD give a **** if you Fus Ro Dah them off a cliff for the lulz unless the player reloads a previous save, like a ******. The systems that we have are not wrong, its just they are too bare bones. It needs more flags. More reactivity. In my example, the cleric would be very open to disclose her personal story and also take every opportunity to preach about her faith and try to convert anyone who'll listen. Actions from the player that align with her faith, values and morality would increase the "relationship meter" or "friendship meter" or whatever you want to call it. However, while she is easy to "farm points" if you will, she has hard caveats related to her faith and what is considered sin. Minor sins come with a heavy penalty to her friendship meter, with her calling out the player and trying to "make him see the error of his ways and bring it back into the light", meaning she will take minor transgressions as misguided confusion, but open blasphemy or murder or anything that is against the core tenets of her faith will lead her to disavow the player and leave forever and even including antagonizing the player on the spot, forcing the player to kill her.

The warrior in my example would be quiet, like Wrex in that sense. Strict business, he is a merc hired for a job. As long as the coin keeps coming, he doesn't care for whatever the player does, be it stealing, wanton violence and yes, even murder. Except, lets say maybe lying openly or abusing the trust of others. As an orphan, he takes cruelty to children extremely badly and heavily dislikes openly manipulating someone for malicious purposes. As a merc he also values honoring contracts. But, the player being a good boy scout would only give minor gains in the friendship meter and cruelty to children would give heavy penalties, leading to the same example of him calling out the player and demanding a higher monetary compensation to stick around. Some events would trigger an immediate hostile retaliation without an opportunity to throw more money at him to make him happy. However, after a certain point in the game and depending on player's actions, there is a flag that gets raised when you get enough clues for him to start acting strange. IF the player asks about it, suddenly the quiet merc now has dialogue options and is willing to open up a little bit. Asking the right questions will provide the player with information about some revenge or something. If the player helps the character finding the mark and gets their revenge, then he gains a HUGE gain on the friendship meter and also a flag of "loyalty" that will remain unshaken unless again, a few events relating to extreme cruelty to orphans/children happens at which point the merc will turn on the player no matter what. But, if the player never crosses that line, then after gaining the "loyalty" flag the merc won't ask for more money on stuff that normally would otherwise. And only those very hard cut offs would lead the merc to leave the party, perhaps if the player earns his loyalty, he would just leave instead of becoming hostile.

I am just taking 10 minutes to brainstorm this so its not really meant to be a finalized design document. But, you get the idea. Its about making a robust rapport system that has more than a single axis. Each character should have different ranges on what they will tolerate and how quickly rapport is gained or lost. This is not "exhaust all my dialogue trees and then mid-game do my quest and we become BFFs" that's the lazy way to go about it and a bare minimum.

Instead of having 5 or so dialogue lines, the NPCs should have different sets of dialogue trees depending on the rapport levels with the player and the progression of the story. Meaning, there are points in the story where personal quests may open up but they should feel voluntary. Meaning, the player only ever gets a chance to attempt the quest if they have invested in creating a bond with that NPC, through dialogue trees, choices in game, dialogue selections during conversations with other npcs and also their completion or failure rate on quests taken so far. The problem that we have is that NPCs are usually divorced from the rest of the game, like you pointed out.

Tags:
User avatar
Havitner
Posts: 618
Joined: Sep 20, '23
Location: Bugbear from Clover Hill

Geolocation

Post by Havitner »

aeb.jpeg
You do not have the required permissions to view the files attached to this post.
User avatar
Norfleet
Posts: 4362
Joined: Jun 3, '23

Geolocation

Post by Norfleet »

Cipher wrote: ↑ October 24th, 2026, 10:16
No. That's the thing, they WOULD give a **** if you Fus Ro Dah them off a cliff for the lulz unless the player reloads a previous save, like a ******. The systems that we have are not wrong, its just they are too bare bones.
No they wouldn't. That happened all the time, and you aren't punished for NPCs taking environmental damage from falling. Which they did. Often.
Cipher wrote: ↑ October 24th, 2026, 10:16
It needs more flags. More reactivity.
None of this ultimately matters when the NPC lacks any independence and agency beyond a strict subset of predictable responses and triggers. An NPC that has given up (or never really had) its independence and agency to become a largely permanent appendage of the player no longer has a meaningful relationship. You don't have a relationship with your leg. You similarly do not have a relationship with a park bench. For the relationship to be meaningful, the character must have its own agency. Goals, objectives, ability to act independently of the player. Like Gandhi, its words must be backed with NUCLEAR WEAPONS.
User avatar
Cipher
Posts: 1231
Joined: Jan 6, '24

Geolocation

Post by Cipher »

Norfleet wrote: ↑ October 24th, 2026, 10:29
Cipher wrote: ↑ October 24th, 2026, 10:16
No. That's the thing, they WOULD give a **** if you Fus Ro Dah them off a cliff for the lulz unless the player reloads a previous save, like a ******. The systems that we have are not wrong, its just they are too bare bones.
No they wouldn't. That happened all the time, and you aren't punished for NPCs taking environmental damage from falling. Which they did. Often.
Cipher wrote: ↑ October 24th, 2026, 10:16
It needs more flags. More reactivity.
None of this ultimately matters when the NPC lacks any independence and agency beyond a strict subset of predictable responses and triggers. An NPC that has given up (or never really had) its independence and agency to become a largely permanent appendage of the player no longer has a meaningful relationship. You don't have a relationship with your leg. You similarly do not have a relationship with a park bench. For the relationship to be meaningful, the character must have its own agency. Goals, objectives, ability to act independently of the player. Like Gandhi, its words must be backed with NUCLEAR WEAPONS.
I am sorry but I don't understand what are you talking about with "that happened all the time". We are speculating on how the system should work. Perhaps I did a poor job making that clear, I wasn't referencing any game or claiming how "Wrex works" was good. It was terrible, I was only making a comparison in the sense of a "merc that keeps it to himself until you help him directly with something" like what happens with Wrex, but ME1 still has a bare bones rapport system.

And of course, the NPC can't have independence and agency unless you code a very advanced AI. The idea of adding more flags and reactivity is precisely to simulate that. For example, the NPCs should react badly to the player fus ro dah them from a cliff. Meaning, damage that comes from the player should raise a flag after a certain threshold and specially if its accrued outside of a combat encounter. Its still not perfect and will lead to false positives but without access to actual Super Intelligence there's only so much that you can do. Read @mercerxiv 's post. He has the right idea. We need to add more flags and axis. The game has to be a game first, not a simulation but currently the models for NPC and in-party rapport are extremely simple and bare bones. They need to be treated with the importance they should have.

Decades ago when Bioware did it for BG2 and then KotOR, people raved about it because it was new but the problem is, much like FromSoft with the Dork Souls mechanics, they never improved on it just kept rehashing it over and over again with little to no advancements.

DA:O and ME1 at least have moments where you can actually lose the NPCs and they turn hostile against the player character as a results of the player's choices and actions during the game. That's good but again, its still bare bones. We needed more, considerably more and we needed big leaps between game series and generations. What KotOR did is almost indistinguishable to how Bioware created their NPC rapport systems decades later on their newest games.
User avatar
anvi
Posts: 847
Joined: Jun 21, '25
Location: England, anti British.

Geolocation

Post by anvi »

Norfleet wrote: ↑ October 24th, 2026, 04:41
Before you concern yourself with relationships with NPCs, you have to consider how many NPCs actually have any agency to act on those relationships. Many simply don't. The random scripted NPC or party member in an Arrpidgey doesn't. The NPC will never do anything on its own. Short of deciding to quit the party when you continually say or do the wrong scripted things, they have no agency and any relationship is essentially the player projecting onto them. Gandhi, on the other hand, will nuke you of his own volition. He has actual agency. Your relationship with Gandhi thus actually MATTERS. So ask yourself: Does the NPC actually have the ability to say anything on his own, outside of a script? Are his words backed with NUCLEAR WEAPONS?
NPC AI needs to be fully trained on the kama sutra otherwise what's the point?
User avatar
Stack of Turtles
Posts: 9030
Joined: May 7, '24
Location: Soon-to-be Cuba

Geolocation

Post by Stack of Turtles »

Cipher wrote: ↑ October 24th, 2026, 10:43
I am sorry but I don't understand what are you talking about with "that happened all the time". We are speculating on how the system should work. Perhaps I did a poor job making that clear, I wasn't referencing any game or claiming how "Wrex works" was good. It was terrible, I was only making a comparison in the sense of a "merc that keeps it to himself until you help him directly with something" like what happens with Wrex, but ME1 still has a bare bones rapport system.
I think he means in real life. Possibly in Vietnam.
VAE VICTIS
User avatar
Norfleet
Posts: 4362
Joined: Jun 3, '23

Geolocation

Post by Norfleet »

Cipher wrote: ↑ October 24th, 2026, 10:43
I am sorry but I don't understand what are you talking about with "that happened all the time".
Who's the Most Satisfying Character to Fus-Ro-Dah off a Cliff?
Cipher wrote: ↑ October 24th, 2026, 10:43
And of course, the NPC can't have independence and agency unless you code a very advanced AI.
NPCs can't have independence and agency because they remain firmly tethered to the player as appendages. They don't actually play the game. It is not about how many flags and switches they have or how advanced their AI is (which certainly helps, but isn't the key). It's about whether or not they're actors with real agency, or just appendages of the player. That means it's more reasonable that the player would develop a real, relevant relationship with the vendor he sells all his scrap to, than a partymember, since at least the vendor can DO something (but usually does not, and instead just becomes a piece of scenery no different from a vending machine).
Cipher wrote: ↑ October 24th, 2026, 10:43
Decades ago when Bioware did it for BG2 and then KotOR, people raved about it because it was new but the problem is, much like FromSoft with the Dork Souls mechanics, they never improved on it just kept rehashing it over and over again with little to no advancements.
People were deceived. Like I said: Projection. They perceived a relationship that didn't exist based on flavor text. This was simply an early form of AI psychosis. ChatGPT does not love you.

You want a REAL example of a relationship, consider this one from early Stellaris (tile-based era): I would purposefully give tons of cheap-as-free food to the other factions. This allowed AI empires to not build any farm tiles, which they did. We now had a REAL relationship, not merely a pretend one told in text, in which I was their provider. If their actions displeased me, I could then exploit that relationship to cut off their food, resulting in mass starvation, rioting, and some of the worst bordergore known to man. That's what a real relationship looks like. "NPC Liked/Hated/Will Remember That" is not a relationship, it's a scorecard. You fundamentally cannot form an actual relationship with a partymember because they are nothing more than a puppet. They cannot do anything. They aren't even a pet.