Dealing with NPC's during mod creation

I'm working on starting a mod to combine two of my interests and was hoping I would be able to remove the original NPC's from the game. I have been looking for a while now and I can't find anything. Does anyone know if this is possible? If it is, how?
 

SomeoneEls

Sodbuster
You would have to remove the character itself mentioned in data/characters and then any other mentions of that character, that be in cutsceens, diolouge, and other stuff. ANY time that character's data is called you would have to remove that call/mention.

The best method to do this is well... just try to delete the character and see what breaks, then try and patch it that way.
[If the character still shows up with just the data with that character was removed, not the schedules data and the xnb file, then you would have to remove those via content patcher ( I thinks with loading an empty file instead then remove any mentions)]

Here is a code snippet for removing the character data itself. (not the schedules data or xnb)

C#:
private void OnAssetRequested(object sender, AssetRequestedEventArgs e)
{

if (e.NameWithoutLocale.IsEquivalentTo("Data/Characters"))
{
    e.Edit(asset =>
    {
        var data = asset.AsDictionary<string, CharacterData>().Data;
        data.Remove([characternamehere])
    });
}

}
For more info on how to do this,



(oh yeah and if you want to totally remove that characters files and EVERYTHING related to it you would have to uh... do that with content patcher. Thats a lot of files so uh, I would reccomend the bare minimum.)
 
Last edited:
Top