Modder wires ChatGPT into Skyrim VR so NPCs can roleplay and remember past conversations

Preacher in Skyrim
(Image credit: Bethesda)

Spend enough time in any RPG and you'll eventually run out of things to talk about with its characters. But what if they had a never-ending supply of dynamically generated anecdotes? What if you could ask them questions that weren't listed on a menu in front of you? What if they could even remember the experiences they've had with you in the game, and could talk about them at length? Those are the questions modder Art From The Machine is trying to answer in Skyrim VR.

In the video below you can see some scenes from the work-in-progress mod, which uses OpenAI's large language model ChatGPT to generate responses, xVASynth for text-to-speech so the NPCs can be fully voiced, and Whisper for speech-to-text, so players can speak into their mic and the NPCs can understand them. 

That's a lot of different systems being put into play, and the early results are some pretty stilted responses. But at the same time you see a glimmer of the potential of NPCs wired up with AI to create dynamic conversations:

There are a bunch of different conversations and snippets shown in the video, but the most interesting is a chat with Ulfberth War-Bear, star employee of Warmaiden's in Whiterun. Thanks to the mod, Ulfberth knows the shop's hours of operation and can tell them to the player (though awkwardly) and can even calculate how soon the store will close based on the in-game time. 

Yeah, Ulf's pronunciation is pretty awful—though it does sound like his voice, and he's lip synched, which is impressive—but I like the idea of playing a game where a simple question like "How long until you close?" pops into my head and I can just ask a shopkeeper and get a straightforward answer. That'd help make an NPC feel more like a real person.

The modder also picks up a sword and asks Ulfberth to describe it, which he does: "It seems to be a well-crafted iron sword with a soul gem embedded in the hilt. The enchantment on it allows the wielder to capture the souls of their enemies."

It's not exactly scintillating as Ulfberth recites what feels like a few lines from a game wiki, and it's not particularly impressive that he 'knows' details about the sword—the game itself obviously knows what kind of sword it is, too. But it's not this exact conversation that's exciting, it's that it's being generated on the fly (though slowly) and what it could mean in future games. NPCs reacting dynamically to something you just did or said, without having to have that specific dialogue written and recorded for it in advance—that's interesting to think about.

Even more interesting is if these AI-enabled NPCs could remember past events and conversations when you talk to them later, something Art From The Machine is working on in this mod. "I have a basic memory system set up where I ask ChatGPT to summarize the conversation on exit to help condense it down for future prompts," they say on Reddit. "There are much more sophisticated tools out there to handle memory though such as Langchain which I am hoping to implement in the future."

The mod isn't available to try yet—Art From The Machine wants to add more features and do more bug testing before releasing it. But Skyrim isn't the only game being modded with AI tools: Mount & Blade: Bannerlord has a mod that lets its NPCs use AI to answer questions typed by the player. You can see a video of that mod here.

Both of these mods are impressive, though I think apart from the technical challenges of wiring AI into NPCs, the issue for me is this: even if NPCs can endlessly conjure up new dialogue, is all that chatter going to be interesting enough to want to listen to? We recently saw researchers populate a virtual town with AI agents, and even though it's cool that they threw parties and talked with each other, the conversations themselves were… pretty dull. I don't think the tech to make NPCs talk endlessly is going to matter that much if they ultimately don't have anything interesting to say. Hopefully most games and mods in the future will stick with good old-fashioned dialogue written and performed by humans.

Christopher Livingston
Senior Editor

Chris started playing PC games in the 1980s, started writing about them in the early 2000s, and (finally) started getting paid to write about them in the late 2000s. Following a few years as a regular freelancer, PC Gamer hired him in 2014, probably so he'd stop emailing them asking for more work. Chris has a love-hate relationship with survival games and an unhealthy fascination with the inner lives of NPCs. He's also a fan of offbeat simulation games, mods, and ignoring storylines in RPGs so he can make up his own.

Read more
Aloy
'Creepy,' 'ghastly,' 'rancid': Viewers react to leaked video of Sony's AI-powered Aloy
Two people talking in the street
Inzoi's 'Smart Zoi' AI system sounds great on paper but seeing it in a live demo didn't exactly wow me
Inzoi - two characters pose for a selfie together in front of a blue convertible car
Inzoi is creating a newfangled life sim NPC that can 'grow and develop its own personality' with Nvidia's AI tech
pubg
PUBG teammates not good enough? Nvidia's new generative AI-led 'Co-Playable Character' aims to offer you an alternative
Baldur's Gate 3 Karlach concept art
'The dream of the tech industry is to sell off your company at an overinflated price and retire,' says actor behind Baldur's Gate 3's Karlach, 'And I feel that's being done with game studios right now'
Paradise building in the sun in Avowed
Avowed's inert cities remind me just how good we had it in Skyrim and Oblivion
Latest in RPG
Minthara BG3 looking upset
Another round of Baldur's Gate 3 unearthing reveals Minthara can end up living in a sewer, an unused beach ending, and more
Person battling bizarre four-eyed monster with stylish UI elements surrounding them
Persona and Metaphor: ReFantazio's UI designer is open to accessibility options for players who find the stylish menus overstimulating: 'That is something we understand we'll need to work on and provide in the future'
Like a Dragon: Infinite Wealth money farm - Super Crazy Delivery
Like a Dragon series director sums up why sidequests are essential to a great RPG with a single metaphor: 'a good main dish alone will not earn you a Michelin star'
Image of a sweetroll with a candle in it
Bethesda marks Oblivion's 19th with a sweetroll, a candle, and absolutely no happy birthday gift for fans eager for the still-unannounced remaster
Fallout 76 ghoul screenshots
Getting to level 50 in Fallout 76 to become a ghoul actually isn't as daunting as it seems, which is why I created a new character
Koana, a main character in Final Fantasy 14: Dawntrail, stares thoughtfully at a book in his hands.
After a controversial coding slip-up fed stalkers info on their victim's alts, FF14 wipes the slate clean to try and fix its mistakes
Latest in News
Baldur's Gate 3 Karlach concept art
'The dream of the tech industry is to sell off your company at an overinflated price and retire,' says actor behind Baldur's Gate 3's Karlach, 'And I feel that's being done with game studios right now'
assassin's creed shadows protector's armor
Assassin's Creed Shadows hits 2 million players, putting it on track to be the series' most successful game yet
Minthara BG3 looking upset
Another round of Baldur's Gate 3 unearthing reveals Minthara can end up living in a sewer, an unused beach ending, and more
A shirtless man rides a big fish underwater
Ark devs distance themselves from AI-generated trailer: 'we did not know that they were doing it'
Team Fortress Spy being shocked
An FPS studio pulled its game from Steam after it got caught linking to malware disguised as a demo, but the dev insists it was actually the victim of a labyrinthine conspiracy
Neighbors Suburban Warfare screenshot a child aims a slingshot at a man from across a cul-de-sac.
A beta of backyard FPS Neighbors: Suburban Warfare is out now, and the balance discussion is hysterical: nerf trash can lids and children