[RMMV] Equip an Actor

I did a search and got part of my question answered, but the solution produced a new problem. My goal is to have an actor join the party whenever the player equips a special piece of armor. I accomplished this by setting up a parallel common event to check if the actor has the armor equipped. While this works, the problem is you have to close the menu screen and reopen it to see the new member. It's the same in the opposite direction. When you take the armor off, you have to close and reopen the screen to see the actor has been removed from the party.


I'm assuming this is because closing the menu lets the parallel common event actually run. What I would like to do is have the added actor show up/disappear immediately when the player equips/unequips the relevant armor without having to open/close the menu. Is there any way to accomplish this?


And yes, I did search for an equip common event script, but the only one I could find was for VX/ACE. If you know of one for RMMV that can handle this mechanic much easier, please feel free to suggest it. Thanks in advance for the help.
You're correct. You're using a map-based event which will only run during the map scene. To accomplish what you want, you'd need to rewrite Scene_Menu (and/or related functions) to listen for equipment changes and adjust the party composition as a result.
You're correct. You're using a map-based event which will only run during the map scene. To accomplish what you want, you'd need to rewrite Scene_Menu (and/or related functions) to listen for equipment changes and adjust the party composition as a result.



Okay, I was afraid of that. Well, I'll have to put that on my list of things to commission at a later date then. Thanks for the response.
I can made plugin for you but can you give me a little info


Do you want use only armors?


Do you want use one armor or more than one?
I can made plugin for you but can you give me a little info


Do you want use only armors?


Do you want use one armor or more than one?



Sorry it took so long to get back. Thank you for the offer. Yes it would only be for armors but more than one armor.
Try this

View attachment ActorEquip.js
Thanks! I'll test it out a little later when I get a chance to update MV.
Okay. I downloaded and installed the file, but it did not work. Also, there's a bunch of information about skill points in it. I'm not sure what that's about.
Sorry i gived you a wrong script


try this


View attachment EquipAnActor.js
@mrcopra This script worked! Thank you so much. Do you have a Patreon or something where I can donate some money to you?
@mrcopra This script worked! Thank you so much. Do you have a Patreon or something where I can donate some money to you?

Your happiness is my donation ?
Thank you so very much @mrcopra. I will definitely credit you in the game 🙂

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-equip-an-actor.60613/