I have a battle engine where mp and tp start at 50 out of 100 and move up or down based off of character actions. various affects occur at the extreme percents. Further, I am using the enemies mp guage as a break meter and it starts at 0. I have all of this functioning but I have a polish issue. Since all the default battles percents are set on battle load and I am setting them to my default values via a common event, there is a split second on battle load where values like mp are at 100 and this triggers animations and buffs before initial input. It looks really sloppy at the start of every fight. Is there a way to set what the default battle values somewhere in the .js files or does anyone know of a plugin for this.(I am running all of yanfly's battle plugins and have been digging around in the .js files and tweeking values and haven't got anything that works yet.)
Default Battle Values
JS Plugin RequestsI've moved this thread to JS Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.
When you say 50 out of 100, does that mean that all your actors have 100 as their maximum MP at every level?
Basically, you want a quick little plugin that will set all of your party members' MP to 50 at the start of each battle? Will this only affect actors, or do you have something set up for enemies as well?
When you say 50 out of 100, does that mean that all your actors have 100 as their maximum MP at every level?
Basically, you want a quick little plugin that will set all of your party members' MP to 50 at the start of each battle? Will this only affect actors, or do you have something set up for enemies as well?
Put simply, party member mp and to starts at 50 and enemy mp starts at 0.
and what about tp? Do they both start at 50 or do enemies also start at 0?
Tp starts at 0 for enemies too.
Try this:
Just save it with any name and .js extension in your plugins folder, and add it to your game. No parameters required.
Code:
Game_Actor.prototype.onBattleStart = function() { Game_Battler.prototype.onBattleStart.call(this); this.setTp(50); this.setMp(50);};Game_Enemy.prototype.onBattleStart = function() { Game_Battler.prototype.onBattleStart.call(this); this.setTp(0); this.setMp(0);};
Awesome thanks! I have been reading through the files trying to get a better since of all that is connected. I can read code pretty well but I was hitting a wall with how to change these values. Looking at that it seems so much simpler than I thought it would be.
Original thread: https://forums.rpgmakerweb.com/threads/default-battle-values.50721/