Removing gauge displays from battle mid-game

Is there a way to remove the MP term and gauge display from the battle screen through use of a script? What I want to be able to do amounts to:

1) Have a battle where the MP gauge is displayed (as per default DB setting)
2) Have a battle later in the game the MP gauge is not displayed.

Hopefully someone can assist with this one - I've seen similar threads but not this particular question.

I use mostly VisuStella plugins but happy to explore others if there are any suggestions outside simple scripts, if it's even possible.

Thanks 🙂
Is there a way to remove the MP term and gauge display from the battle screen through use of a script? What I want to be able to do amounts to:

1) Have a battle where the MP gauge is displayed (as per default DB setting)
2) Have a battle later in the game the MP gauge is not displayed.

Hopefully someone can assist with this one - I've seen similar threads but not this particular question.

Thanks 🙂

Made plugins to help with this for you. ☺️
CTB_NoBattleMPGaugeMZ Plugin: Click Here to Download
Use like this:
Spoiler
1666126507960.png
Any code you want. 🙂

CTB_TroopCodeMZ Plugin: Click Here to Download
Use like this:
Spoiler
1666126363528.png
Again this can be any code you want. 🙂

Also can be done mid-battle with something like this:
Using the example code above...
Show MP:
Spoiler: Show MP
JavaScript:
$gameSwitches.setValue(1, false);
SceneManager._scene._statusWindow.refresh();
SceneManager._scene._actorWindow.refresh();
Example using a common event via skill effect:
Spoiler
1666128328434.png
Hide MP:
Spoiler: Hide MP
JavaScript:
$gameSwitches.setValue(1, true);
SceneManager._scene._statusWindow.refresh();
SceneManager._scene._actorWindow.refresh();
Spoiler
1666128368176.png

Works nicely from my brief testing. Should do the trick for ya. Let me know how it goes 🙂
Brilliant, thank you so much! I will test it ASAP.
Brilliant, thank you so much!
No prob. 🙂👍

I will test it ASAP.
Ok sounds good. :popcorn:
No prob. 🙂👍


Ok sounds good. :popcorn:
Again, thank you so much for sharing this with me.

Did some testing - the Troop plugin allows for script calls using comments as shown and will enable switch changes and triggering common events etc. Unfortunately, the other plugin to hide the MP gauge isn't working but if it works for you, it's probably due to VisuStella plugins ><

Does this work for both FV and SV battles? Presume that makes no difference for a gauge?
The only other thing I can think of is that 'MP' is renamed to 'WP' in the database but the code is presumably referencing the hard-coded 'MP' element?

Either way, thanks 🙂

Original thread: https://forums.rpgmakerweb.com/threads/removing-gauge-displays-from-battle-mid-game.152063/