Stopping MP from regenerating when changing MaxMP

DragonKingDX2

Kamen Rider
Member
Joined
Feb 12, 2019
Messages
6
Reaction score
0
First Language
English
Primarily Uses
RMMV
I was curious if there is a way to stop the MP bar from filling back up each time you change it with equipment. I am trying to make an ammo system for my game and each weapon has a different number of bullets. I worked out how to do a reload and unload by turning gold into the bullets but if a player swaps weapons they will either gain a large number of bullets or lose a large number of them. I would prefer if I could run an event when they swap weapons but I could only find two plugins and haven't gotten either of them to work. HIME's seems to not be functional at all and with WAY's I thought putting $gameActors.actor(1).gainMp(-6) would suffice but it doesn't affect anything. Any help would be greatly appreciated.
 

TheGameBrewery

Veteran
Veteran
Joined
Apr 14, 2018
Messages
34
Reaction score
20
First Language
English
Primarily Uses
RMMV
Could you post a screenshot of an example of your equipment? What plugins are you using?
 

DragonKingDX2

Kamen Rider
Member
Joined
Feb 12, 2019
Messages
6
Reaction score
0
First Language
English
Primarily Uses
RMMV
I have a bunch of Yanfly, Hime, Mog, and Glav, Plugins since it's the project that I just test stuff in. I added WAY_Core and WAY_CustomOnEquipEval to the bottom of the list after everything else since everything else is in the proper order and has been working and still works fine. The actor starts with this pistol and their MAX MP is set to six. When they switch weapons their MAX MP changes to 30. I have the gold acting as bullets and I made a system where they can reload and unload the gun so they don't lose bullets. (since it's also the currency like in metro) But if they gain full MP back every time they swap a weapon they can easily create a lot of bullets for free.
 

Attachments

  • Equipment.png
    Equipment.png
    198.4 KB · Views: 0
  • Equipment2.png
    Equipment2.png
    178 KB · Views: 0

Latest Threads

Latest Posts

Latest Profile Posts


I ended up needing to do a chapter one world map remake. It's still WIP but coming along nicely. =D
Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

1st iteration on castle interior in Tiled.
I've started up Pillars of Eternity. It's interesting how the game does a "select choice" cutscene using still image art for dramatic flair. I wonder if that might work for my RPGMaker project.
The self-righteous indignation of family when you expect them to pay back money you've leant to them never ceases to amaze me.

Forum statistics

Threads
107,748
Messages
1,031,863
Members
139,890
Latest member
jpw5280
Top