need help to edit character behavior

● ARCHIVED · READ-ONLY
Started by apenguin 1 posts View original ↗
  1. hello guys.
    I'm having this issue where my characters in Auto-battle will only perform skills that deal damage or
    recover HP, and they ignore all other skills.

    I still want damage and healing to have priority but I'd like their 3rd option to be a skill that recovers MP,
    instead they just go to 'WAIT'.
    so I understand the behavior can be altered by editing this part:
    Spoiler
    Game_Actor.prototype.makeAutoBattleActions = function() {
    for (var i = 0; i < this.numActions(); i++) {
    var list = this.makeActionList();
    var maxValue = Number.MIN_VALUE;
    for (var j = 0; j < list.length; j++) {
    var value = list[j].evaluate();
    if (value > maxValue) {
    maxValue = value;
    this.setAction(i, list[j]);
    }
    }
    }
    this.setActionState('waiting');
    };

    I already tried editing this myself, but I only got the character to be stuck doing 1 same skill all the time. lol
    anyway, thanks for reading!