How can I cause dealing damage types that enemies are weak to (element rate greater than 100%) from items, skills or anything else to recover the attacker 1 TP?
I couldn't find any free plugins that worked on MZ, so I had to resort to attempting to edit the JavaScript although I have almost no experience with JavaScript. I was able to set a maximum TP and remove all sources of TP gain excluding skills without plugins but I'm unable to do this.
There is a plugin that does what I want but unfortunately doesn't work on MZ (causes an error when I go to status). I've tried using ChatGPT and got
if (elementRate > 1) {
target.gainTp)1_;
}
which goes in rmmz_objects under Game_Action.prototype.makeDamageValue but that also didn't work.
I'm new to RPG maker so I'd really appreciate any help.
I couldn't find any free plugins that worked on MZ, so I had to resort to attempting to edit the JavaScript although I have almost no experience with JavaScript. I was able to set a maximum TP and remove all sources of TP gain excluding skills without plugins but I'm unable to do this.
There is a plugin that does what I want but unfortunately doesn't work on MZ (causes an error when I go to status). I've tried using ChatGPT and got
if (elementRate > 1) {
target.gainTp)1_;
}
which goes in rmmz_objects under Game_Action.prototype.makeDamageValue but that also didn't work.
I'm new to RPG maker so I'd really appreciate any help.