Jump to content

Is it possible to change an NPC's name via a script?


Recommended Posts

Posted

I'm making a quest that goes something like this:

 

Me: Hello, what is your name?

???: I'll tell you after you get me a bottle of ale.

Me: Here you go.

???: Thank you, my name is XXX by the way.

 

The npc starts off with the name ???, but after this "quest" his name will be XXX for the rest of the game.

 

Is there a script that can do this?

Posted

You can use SetName() but it requires load game maintenance. Must be used on the ActorBase. Not the Actor. 

https://www.creationkit.com/index.php?title=SetName_-_Form

 

Consider if you really need to be running load game maintenance.

 

Or consider inverting the maintenance - SomeDudesActorBase.SetName("Some Dude")

Then when you discover his name you can simply stop his name maintenance so that its not running forever for the rest of your save.

Posted

Not an expert on this but I'm fairly certain I've seen the option to change an actor's name through a quest alias. So basically, add a reference alias to a quest, configure it, and assign the actor to it when you're in that part of the dialogue.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...