oriongates

Veteran
Veteran
Joined
Dec 26, 2019
Messages
209
Reaction score
57
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
209
Reaction score
57
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
900
Reaction score
569
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
209
Reaction score
57
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

oh god I'm going to die
AAAAAAAAi.png
Kind of relieved that I had medibang installed when I need to edit Sprite I was about to download gimp but I remember I had medibang installed lol
Voting for the first round of the Map Madness Tournament is now live! Vote for your favorite in each matchup!

Finally started working on Grim Trigger episode 2 today :LZScat: it's half comic/half visual novel!

GfY3Rwj.png
Is it interesting to get more backstory on villains? A key moment in their past, their childhood, or maybe something that shows they've always been that way? To see or not to see?

Forum statistics

Threads
110,367
Messages
1,052,647
Members
143,402
Latest member
IBanana
Top