Hi,
I've managed to edit the counter attack function so that it applies a different skill for a certain enemy, instead of attacking. My function looks like this:
This works absolutely fine. Excecutes the skill number 17. BUT...
- Doesn't play any associated common event
- Doesn't show any animation on the player
Does anyone know what command I need to use alongside setSkill(x) to make that happen? Long shot, I know.
I've managed to edit the counter attack function so that it applies a different skill for a certain enemy, instead of attacking. My function looks like this:
BattleManager.invokeCounterAttack = function(subject, target) {
var action = new Game_Action(target);
if (target.enemyId() == 2)
{
action.setSkill(17);
}
else
{
action.setAttack();
};
action.apply(subject);
this._logWindow.displayCounter(target);
this._logWindow.displayActionResults(target, subject);
};
This works absolutely fine. Excecutes the skill number 17. BUT...
- Doesn't play any associated common event
- Doesn't show any animation on the player
Does anyone know what command I need to use alongside setSkill(x) to make that happen? Long shot, I know.