Yeah I was gonna get around to some alt versions sooner or later. Check back in later to remind me if I forget. (I get involved with other things so I forget easily.)
For the peahat/leever idea you want the third enemymaker(dungeon) script. The one where you specify up to 7 enemies to generate. I also realized I forgot to explain this one:
Code:
ffc script splitter_spawner{
void run(int eid, int e_max, int s1, int s2, int s3, int s4){
bool init = false;
npc e;
while(true){
if(init == false){
e = Screen->CreateNPC(eid);
init = true; e->X=this->X;e->Y=this->Y;
}
else if(!(e->isValid())){
if(s1>0){
for(int i; i < e_max; i++){
npc s = Screen->CreateNPC(s1);
s->X = this->X;s->Y = this->Y;
}
}
if(s2>0){
for(int i; i < e_max; i++){
npc s = Screen->CreateNPC(s2);
s->X = this->X;s->Y = this->Y;
}
}
if(s3>0){
for(int i; i < e_max; i++){
npc s = Screen->CreateNPC(s3);
s->X = this->X;s->Y = this->Y;
}
}
if(s4>0){
for(int i; i < e_max; i++){
npc s = Screen->CreateNPC(s4);
s->X = this->X;s->Y = this->Y;
}
}
Waitframe();
this->Data = 0;
Quit();
}
else{
this->X = e->X;
this->Y = e->Y;
}
Waitframe();
}
}
}
It creates one freeform (yes freeform boss) enemy at the location of the ffc (D0), then once that enemy dies it splits into an amount of enemies (D1) for each other enemy type (D2-D5) specified. So you can create a freeform Aquamentus that splits into up to 76 enemies multiplied by up to four enemy types. I am so cool