Jump to content

How do mods automatically change the name of the base item?


Amakudari

Recommended Posts

Need some help from modders more knowledgeable than me, please :)

How does adding a mod change the base item description? Like adding a silencer to a 10mm pistol automatically renames it as a 'Silenced 10mm Pistol'
I've looked all over the CK and FO4Edit and can't see any values that modify the name. Is it in a script somewhere that I've missed?

Thanks!

Link to comment
Share on other sites

aand wouldn't you know it? I figure it out after I've posted :smile:

 

I was missing the Instance Naming Rule on the base object, which uses dn_ keywords in the OMOD to assign different prefixes.

 

All working now, thanks to looking through a better mod than mine to see how they did it :D

Edited by Amakudari
Link to comment
Share on other sites

Glad you figured it out. Something to note as well, if you want the item to be created with the instance naming instead of only being updated when you mod it, then the items record (armor/weapon) needs to have an object template. Without the template the game engine creates the item with the base name regardless of what attachments it might have. Then when you mod it adding or removing any attachment it will then be updated with a new naming.

 

The one caveat is if you manually rename the item in the workbench. Then its static and doesn't update.

 

Some special items, usually quest rewarded type like Ashmaker, cannot be renamed and do not have instance naming.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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