Should there be only one script (a commander) that iterates through all NPCs and make them attack and etc., or should there be invidivual scripts each inside its own NPC so they all get commanded individually?
I like having a centralized script because that way there aren’t 100s of identical scripts that you have to remember to update when you make changes.
It can function pretty much exactly the same as if you had a script for each NCP, so there’s no real downside.
Won’t it lag if there’s too many active NPCs at a time?
Also, couldn’t I just make a single script that calls upon a module? The module should do everything that certain NPC asks, and there won’t be any literal replicas
This is the case for both approaches.
You could totally do that if you prefer.