The spawn system would handle the spawning of creatures, reducing their number as they are killed off or increasing if they are not. It would be based off of waypoints with intuitively named local variables and generous comments explaining how things work to builders.
I'd prefer the behaviors be a part of the creature's AI, and naturally only do anything when not in combat. But of course we can't have 10 DM-spawned guards suddenly decide to all go on the same patrol route, nor can we create a NPC resref for each desired behavior. So I think we should have spawn waypoints pass information on the desired behaviors to the creature in the form of local variables. DM-spawned NPCs of course would not have these variables, and would therefore not have any behaviors.
I think this works well, because NPC behaviors could likely be modular with respect to any AI system, ie a simple insert in the heartbeat script,
Code: Select all
if( !GetIsInCombat(oCreature) ) {
RunBehaviors(oCreature);
return;
}Thoughts?
