I want to add a limit break system similar to ff7 where every character has a gauge that increases when they take damage. When the gauge is full they can use a powerful skill. The gauge should reset at every battle as well. I've been trying to figure out how to use this with and without plugins but I'm a little lost cause I don't know JS. I have tried using VisuStella Battlecore and/or States Skills Core. Anyone got any ideas? RMMZ BTW
How to make a limit break gauge based on damage take?
RPG Maker MZ Supportdo you already use TP? because TP is already battler specific, has a gauge, increases as damage is taken, can be used as a requirement for skills, and resets every fight. youd just have to remove the tp gain from skills.
I guess I could just use that. Is there a way to adjust how much is gained when taking damage and the name of it or should I look for a plugin for such a thing?
the terms section of the database lets you rename TP, but to adjust tp gain to be other than half of the percentage of incoming damage to max hp adjusted by tp charge rate will require a plugin.
If you're using plugins, enhanced TP system from VS lets you create a TP mode that does just that.
In MZ, if you don't use any plugin for this purpose, this is the default code (in rmmz_objects.js) that you would need to overwite:
Damage rate is the amount of damage received, divided by the MaxHP of the battler.
Code:
Game_Battler.prototype.chargeTpByDamage = function(damageRate) {
const value = Math.floor(50 * damageRate * this.tcr);
this.gainSilentTp(value);
};
Damage rate is the amount of damage received, divided by the MaxHP of the battler.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-limit-break-gauge-based-on-damage-take.176301/