Trait Attack times
JS Plugin RequestsBump, also looking for this feature. Or at least how to properly use "attackTimesAdd" in a notetag. These are the only references to attack times i've found:
Game_BattlerBase.prototype.attackTimesAdd = function() {
return Math.max(this.traitsSumAll(Game_BattlerBase.TRAIT_ATTACK_TIMES), 0);
};
and
Game_Action.prototype.numRepeats = function() {
var repeats = this.item().repeats;
if (this.isAttack()) {
repeats += this.subject().attackTimesAdd();
}
return Math.floor(repeats);
};
EDIT: Think I've found a solution! Tho, it might make other skills not work as intended but anyways...on line 1293 of rpg_objects.js I changed it to:
if (this.isAttack() || this.isPhysical) {
...and viola it works!
Game_BattlerBase.prototype.attackTimesAdd = function() {
return Math.max(this.traitsSumAll(Game_BattlerBase.TRAIT_ATTACK_TIMES), 0);
};
and
Game_Action.prototype.numRepeats = function() {
var repeats = this.item().repeats;
if (this.isAttack()) {
repeats += this.subject().attackTimesAdd();
}
return Math.floor(repeats);
};
EDIT: Think I've found a solution! Tho, it might make other skills not work as intended but anyways...on line 1293 of rpg_objects.js I changed it to:
if (this.isAttack() || this.isPhysical) {
...and viola it works!
You, sir, are amazing. I was looking for an answer to this for hours but kept getting search results on what must've been old game scripts. Something about an editor and game_object line 90? I don't know but this one actually worked.
Original thread: https://forums.rpgmakerweb.com/threads/trait-attack-times.56310/
