truvulture
Terrarian
Hello everyone, I'm trying to create a mod that changes a few item and NPC names, but I can't seem to find a function to do so. I've been combing through the documentation and old forum posts with no luck. Any help would be greatly appreciated!
C#:
public class customNpcName : GlobalNPC
{
public override void SetDefaults(NPC npc)
{
if (npc.type == NPCID.RainbowSlime)
{
npc.name = "insert name here";
//the problem is '.name' isn't a function of npc, and I can't find a function that changes display names.
}
}
}