[RMVXAce] is Negative MP Possible?

I was wondering if it was possible through changing the scripts to allow MP to go into negative numbers?

Like say for example I have 10 MP but want to use Firaga which costs 20 MP

The spell is used, and my MP goes to -10. Now I cannot cast anything until
I am back in the positive numbers.

Also in the event that a battle ends on a negative number, it would automatically go back to 0 upon ending the fight.

Is this possible through a simple change in the core scripts, or will I need to post in the script requests and commission something like this?
Correct me if I am wrong but you basically want your actors to be able to cast skills until they have at least 1 MP left and then wait until their MP value is back to at least 1 and set their MP to 0 at the end of any battle.

If I got it right it doesn't sound too difficult. You have to change the way the game checks if skills are usable. About the negative value you can either leave it to zero and store the negative value in a new instance variable within the Game_Actor class and add (or subtract if you save it as a positive value) that variable from the restored ammount. This way you won't have to set your actor's MP to 0 at the end of every battle. Or you could set the MP value to a neative value and add a new method to the Scene_Battle class to set MP to 0 for every character with MP less than 0.

NOTE: if you decide to use the 1st way I mentioned remember to reset the variable used to store negative values to 0 when restored MP are greater than that value.
@Heirukichi No, you're correct. Unfortunately I don't know much about Ruby or scripting. If it's not too difficult I should be able to pay someone to do it for me without it costing a fortune though, right?

To elaborate further, in my project all characters and enemies have a hidden value that makes them constantly regenerate their MP.
I would like for them both to be able to overspend their MP, so if it only changes Actors then that probably wont work.
yes, writing a script can change the way how the RM handles the data, and that includes the options you describe here.

However, it will require a full script and nothing easy because there are several places where the engine is explicitely checked and blocked against negative values, because those can cause problems - and the script would not only have to remove all those options but rewrite other parts to prevent said problems (for example how negative MP-Regeneration reacts to negative values and so on.

Moved to: Ace Script Request
@The Mighty Palm Enemies and Actors are both child of the same parent class so you could edit that one to add the effect to both your classes.

About what Andar said, that is true if you want to add a negative value you have to change how negative values are handled by the system, and that's exactly why I suggested the other way. Creating new variable that stores negative values might be easier than overwriting everithing that prevents the engine to go into the negative values.

That won't prevent you from overspending MP so your system will work more or less the same (from the player's point of view).

Original thread: https://forums.rpgmakerweb.com/threads/rmvxace-is-negative-mp-possible.76109/