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
859
Reaction score
543
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

V1.3 of Demo, a new concept artist on the team, character voices are coming into light more... I'm happy to say that the fangame is making good progress.
Ami
--- Stolen Item ---

M.Figher: I want to sell this Stone
Fence: Then...i can buy you 1500G
M.Figher: It's Deal!
(3 Days Later)
F.Fighter: M.Figher,Do you know about Stone that Mayor keep it in his Office? It's missing
M.Figher: Ahh,is that so... (Actually,i Stole it and Sell it to the Fence a few Days ago)
I've spent some cash on foley and other sound effects. I wonder sometimes if I made a poor choice, but I remember that I really want to improve the sound of my games. n...n; My frugalness haunts me sometimes.

Forum statistics

Threads
108,851
Messages
1,040,048
Members
141,289
Latest member
mymay0510
Top