oriongates

Veteran
Veteran
Joined
Dec 26, 2019
Messages
204
Reaction score
55
First Language
english
Primarily Uses
RMMV
Is there any plugin for MZ that can run a common event when a piece of gear is added or removed? Sort of like Hime's plugin for MV?

I'm trying to set up a persistent ammunition system for my game and unfortunately I can't think of any way to get it to work without calling a common event when a weapon is added/removed.
 

oriongates

Veteran
Veteran
Joined
Dec 26, 2019
Messages
204
Reaction score
55
First Language
english
Primarily Uses
RMMV
Hmm...sadly I don't think that'll work.

This system would involve replacing MP with an ammo counter and using the common event to adjust the player's MP to match the new weapon. If it doesn't change until after the menu closes that could screw things up if the player tries to change weapons more than once or reload.
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
876
Reaction score
557
First Language
English
Primarily Uses
RMMV
Hmm...sadly I don't think that'll work.

This system would involve replacing MP with an ammo counter and using the common event to adjust the player's MP to match the new weapon. If it doesn't change until after the menu closes that could screw things up if the player tries to change weapons more than once or reload.
Common events cannot play in the menu. Any plugin that calls a common event needs to close the menu to do so. You can see this when you use an item that has a common event on it, the menu closes to play the common event. I'm not sure if the act of the menu closing to run the event is default functionality, or if it was added by YEP_ItemCore, but in either case, the common event doesn't happen unless the menu is closed.

What you're looking for is something like @waynee95 's custom on equip eval plugin., which allows you to run a script when an item is equipped.
 

oriongates

Veteran
Veteran
Joined
Dec 26, 2019
Messages
204
Reaction score
55
First Language
english
Primarily Uses
RMMV
That's odd, I've found a few MV-era plugins that claim they work in the menu. But I'm fine with whatever method works, so I'd be fine with the second option, if there was a version available for MZ.
 

Latest Threads

Latest Posts

Latest Profile Posts

I found a book about game localization. It costs R$708,00 on Amazon. ;_;
I really wish my game was far enough along for it to be actually playable beyond certain aspects. I think I've crafted a really fun battle system thanks to ATB, fighting game, and Boost point mechanics.
Play test of my current progress on Happy Camper
Cutscene Contest Winners have been announced!

I'm heading back to Orlando tomorrow! My dad and I have forgiven each other, so we're planning to spend Spring Break together. We'll probably go to SeaWorld and Aquatica one day, and maybe even use my air fryer to make something to go with Dad's grilled steak. The train leaves tomorrow, and I'll be working on my game on board!

Forum statistics

Threads
109,110
Messages
1,042,177
Members
141,608
Latest member
Sinthea
Top