I think an interesting trick Dwarf Fortress pulls off is how, in Adventurer Mode, whenever you enter a site the game first populates it by pulling from the list of historical figures living there (note that for the purposes of Dwarf Fortress "historical figure" doesn't necessarily mean "important person", but "character that the game has chosen to keep track of as the world history progresses"), and then fills out the rest of the site population with random NPCs generated on the spot that you'll pretty much never see again because they're not saved anywhere and they'll despawn as soon as you leave and the site is offloaded.
HOWEVER, if you interact with any of those randos in a way that causes the game to generate a name for them, they'll be immediately marked as a historical figure, so the game will store them in memory and keep track of whatever happens to them from that point onward, ensuring that they can be reencountered at a later time.
That way, the game is able to keep the illusion of a consistent world while only having to keep track of the characters that the player is actually likely to remember.
Also that's one of the reasons I say Dwarf Fortress in Adventurer Mode is the closest you can currently get to playing a fantasy RPG with a human GM. Many of the ways the game reacts to your actions and choices (including this one) kinda resemble the thought process a GM would follow when running a game.
All my dwarves started vomiting everywhere and it's because they HAPPILY drank an entire barrel of mandrake poison that made them all very sick and horny.
Heres something while you're all waiting to see what I'm animating in the background; a totally, 100% canon Iterator Logs event. I've read the script, I'm working on animation, trust me bro.
To make it explicitly clear, I wish for nothing more than the CEO's worlds to be generated with no mountains, hills, or dunes - that every settlable spot is inundated with Heavy Aquifers - that every last one of the fortresses he makes falls to ruin in bland, boring, and uninteresting ways - I hope he is beset by elves, spurned by humans, raided by goblins, seiged by the undead, and severed from migration waves from other dwarven settlements. I hope his death involves minecarts full of steel warhammers that atomise a few times resulting in steel warhammers going everywhere. And I want those steel warhammers to be [FORBIDDEN] so they lay around uselessly.