How can I make this pet follower script (by Neon Black) accomdate to multipale pet followers?

https://forums.rpgmakerweb.com/index.php?threads/pet-follower-script.2635/

Hi, so basiclly what I want to have is multipale followers who don't join my party and this script serves the purpose, only problem is that it's limited to one such follower when I would like multipale. Anyone know how to modify it or perhaps suggest an alternative script? Thank you!
this shouldn't be done, but try duplicating the script on the materials list.
that *should* add another one, which you would have to rename to notice the change.

not the best solution, but it's the quickest to do without re-coding anything.

the script itself is a Pet object.
it adds itself to the game at run time, so if you want another Pet, you just call it twice, which the script does automatically at run time.

the other solution is to create an initialize function that would add them to the party, which is the correct solution, but that would require debugging to make sure it doesn't interfere with other initialize calls from other scripts.
this shouldn't be done, but try duplicating the script on the materials list.
that *should* add another one, which you would have to rename to notice the change.

not the best solution, but it's the quickest to do without re-coding anything.

the script itself is a Pet object.
it adds itself to the game at run time, so if you want another Pet, you just call it twice, which the script does automatically at run time.

the other solution is to create an initialize function that would add them to the party, which is the correct solution, but that would require debugging to make sure it doesn't interfere with other initialize calls from other scripts.

I just tried it and it gives me an error: stack level is too deep.
Calling another pet just replaces it with the first one.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-this-pet-follower-script-by-neon-black-accomdate-to-multipale-pet-followers.87261/