How do I make flat values for regen?

Hey all,

I have a couple things I'm hoping to do: firstly, I want to completely remove all sources of regen for MP. I also want to disable TP gain on hit, and instead make TP regen come exclusively from per-turn regen (that can be turned off or up/down depending on states and equipment from a specific number I select) and abilities. I know that I can turn off TP gain from attacks in the invocations tab so no problems there. I'm also hoping for a way to have player and enemy skills cause TP damage, but I'm not sure how as I don't see the option for it in the damage formula tooltip.

I'm using Visustella's BattleCore and their Frontview battle plugin, but those are the only plugins that affect my battle system right now. I'm open to any way I can implement these — very much appreciated in advance!
firstly, I want to completely remove all sources of regen for MP
There are none, naturally. In the default engine, the only way you get MP back is if you use the Restore event command (which is what people usually use at inns) or if you have an MP regen trait on something (which you'd just choose not to).

I also want to disable TP gain on hit
This requires a little plugin. Paste the below into a text editor, save as a *.js file, include as a plugin.

Code:
Game_Battler.prototype.chargeTpByDamage = function(damageRate) {};

I'm also hoping for a way to have player and enemy skills cause TP damage, but I'm not sure how as I don't see the option for it in the damage formula tooltip.
You'll find this thread useful.


As far as regenerating flat values, you'd use the mechanics-related notetags in the Battle Core for js regen phase, or whatever it's called, with the same gainTp() function as in the thread above.
Thanks so much for the help! So as it turns out the MP regen thing was just a visual hiccup by me with my HUD Maker setup. The plugin worked perfectly!

Also, I'm not sure if this is VisuStella or what, but just setting the TP Regeneration Ex-Parameter to "+x%" increases the per-turn TP generation by a flat amount instead of a percentage.

The TP damage thing is still confusing to me but I'll see if I can figure it out!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-flat-values-for-regen.170752/