Change Party MP to a set number?

So by default, we have the ability to decrease or increase the entire Party's MP by a specific number. I'd imagine it would involve a script call to do this... But how would I go about setting he entire Party's MP to a particular number?
You could use the following script call :

Code:
// All Party Members
$gameParty.allMembers().forEach(function(actor) {
  actor.setMp(50); // Change to Desired Value
});

// Party Members in Battle Only
$gameParty.battleMembers().forEach(function(actor) {
  actor.setMp(50); // Change to Desired Value
});
Alternativelly, remove all MP then add the value you want
for compatibility use actor.setMp(value) instead of actor._mp

Original thread: https://forums.rpgmakerweb.com/threads/change-party-mp-to-a-set-number.69487/