Jump to content

Permanent Alias ?


Recommended Posts

Posted

Ok, So i am making a script, What it will do is rename NPCs by placing them into a quest alias.

 

So like this:

 

 

RefCollectionAlias Property ArmorerAlias Auto Const Mandatory
 
RefCollectionAlias Property ApprenticeAlias Auto Const Mandatory
 
Event OnEquipped(Actor akActor)
        Utility.Wait(0.5)
            Int iButton = MessageNameRoles.Show()
            If(iButton == 0)
            Utility.Wait(0.5)
            ApprenticeAlias.AddRef(akActor)
            ElseIf(iButton == 1)
            ArmorerAlias.AddRef(akActor)
            EndIf
EndEvent

It works great, Sets them to the Alias, and the Alias has a Display name set. The problem is, that when I save and reload the game, they are no longer linked to the Ref and have their old name back. How can I make the switch to the Alias "Persistent" after saving / reloading so you don't have to set a name every time you load the game.

Posted

THere has to be a way, cause when you put a settler as a provisioner, they are renamed using the same form, they are moved into a quest alias and moved out of the alias when you unassign them

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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