RMMZ Initialize actor when adding to the party with script calls

Status
Not open for further replies.

Rixxus

Veteran
Veteran
Joined
Oct 23, 2020
Messages
45
Reaction score
8
First Language
English
Primarily Uses
RMMZ
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!
 

Attachments

  • 1610636650442.png
    1610636650442.png
    14.2 KB · Views: 0

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
455
Reaction score
435
First Language
german
Primarily Uses
RMMZ
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
 

Rixxus

Veteran
Veteran
Joined
Oct 23, 2020
Messages
45
Reaction score
8
First Language
English
Primarily Uses
RMMZ
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 :)
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,785
Reaction score
14,016
First Language
English
Primarily Uses
RMMV

Rixxus, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.



This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,570
Reaction score
8,640
First Language
English
Primarily Uses
RMMV
@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.
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I haven't make anything new yet, but I'm back addicted to writing some MZ plugins. Man, I wish I have more free time like I did 5 years ago.
Holy cow... work is demanding and I'm back in college. I'm kind of scared of my dad right now after the incident, but at least I don't live with him all the time. Anyway, working on Fandom Scouts and my FNAF character set. The FNAF sprites are actually going to be used in the game... unfortunately the enemy sprites are FNAF World traces, so no sharing those.
The honeymoon period is over with Cyberpunk 2077, It sadly doesnt live up to the hype, pretty graphics arent everything (especially when I cant even do something as simple as changing the radio station over!). Replaying Breath of the wild has reminded me what a good game really looks like, plus that one has good glitches!....

Forum statistics

Threads
107,687
Messages
1,031,442
Members
139,804
Latest member
PeJoTa
Top