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.
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