MZ Initialize actor when adding to the party with script calls

Hello!

I'm trying to find a way to force an actor to (re)initialize when adding them to the party.
In short, the player can tame monsters but once they die they are gone, and the player will need to catch another (with the same starting stats from the database).

It seems that it used to be possible to initialize from script calls when adding the actor to the party in older versions, as below.

1610637128404.png

Source: https://www.rpgmakercentral.com/topic/16151-actor-index-set/

Unfortunately, I cannot find anything about it for MZ. I'm hoping someone out there has some secret knowledge to help me.

This is the common event which adds the actor to the party.
1610636540280.png


And if it helps, this is the script that removes the actor/s from the party:
1610637327731.png


Any help is greatly appreciated!
$gameActors.actor(actorId).setup(actorId);
A good starting point is to look into Game_Interpreter, this tells you a lot 😉

Soulrender just typed the method when I was typing xD
$gameActors.actor(actorId).setup(actorId);
Thank you @Soulrender!
A good starting point is to look into Game_Interpreter, this tells you a lot 😉

Soulrender just typed the method when I was typing xD
Haha. Thanks @Aerosys, I'll have a look at that. Still so much to learn 🙂
Double-post notice: Rixxus

Thread closed
@Rixxus In regards to your report, double posting means making another post right after yourself when no one else has replied. You likely did it in this case as you were making multiple quotes.

You can add and respond to more than one quote in a post. Just select the +Quote button for each post before inserting them into the reply box. However, you don’t need to quote posts to reply. If you need to clarify who you are talking to, you can tag them using the @ symbol followed by their username as I’ve done here.

Original thread: https://forums.rpgmakerweb.com/threads/initialize-actor-when-adding-to-the-party-with-script-calls.132218/