- Joined
- Apr 10, 2023
- Messages
- 1
- Reaction score
- 2
- First Language
- English
- Primarily Uses
- RMMV
Hi! I've been using this and it's great but I'm having a problem with counterattacks. I want certain enemies to be able to do ranged counters. Currently counters only use the normal attack skill (Skill #001), which works fine for player units as the attack range can be set through weapons, but enemies always use the skill's range.
Does anyone know how I would be able to override the default attack range or counter skill per enemy? I've been messing around in the scripts but I'm not sure where it checks or sets these
EDIT:
I found a solution! Replacing the code that starts with Game_Action.prototype.extractRangeData = function (object, battler) { with this:
will let you set enemy Normal Attack ranges in the enemy's database notes.
Does anyone know how I would be able to override the default attack range or counter skill per enemy? I've been messing around in the scripts but I'm not sure where it checks or sets these
EDIT:
I found a solution! Replacing the code that starts with Game_Action.prototype.extractRangeData = function (object, battler) { with this:
JavaScript:
Game_Action.prototype.extractRangeData = function (object, battler) {
var data = object.meta['Range'] || TacticsSystem.actionRange;
if (!battler.isActor()) {
data = $dataEnemies[battler._enemyId].meta['Range'] || data;
}
return data.trim().split(' ');
};
will let you set enemy Normal Attack ranges in the enemy's database notes.
Last edited: