Placeatme and using spawn points would resolve this I suppose, but I don't want there to be a 3 day timer for respawning. I want the NPCs available right away after defeat again. Or at least a day at the most. Even if so, the script pulls a random number, and if the number = a certain value, then there is another random number. This random number determines the NPC that is called to the player. What happens when the script pulls a number to an NPC that is already dead? Would it cause a crash, cause the script to fail and never be used again, or nothing happen at all and the script continues again when called to work?
When you use PlaceAtMe it generates a whole new NPC. Like if you had a spawn point that adds 3 of the same creatures, they are the same in type and inventory etc, but they are all unique as an individual creation.
You could have 20 NPC's of the same placed if you want. They will all look the same, have the same inventory etc but they will all act independently for their AI.
This way you could have NPC's set up to be called who have unique inventories, say 5 bandits who have 5 different weapons, 5 different AI, 5 different armour variations or leveled lists of items.
If they lose a weapon or a weapon breaks it will have no bearing on the next NPC that is generated, as it is a unique creation.
Think of PlaceAtMe as a spawn point you can call on when you want, to give you what you want.
If you want the dead to dissapear, as if they have magically been replaced, you just use Begin OnDeath and Disable. They will not be visible and will be removed after 3 days