I'm sure a few people have run into this issue before...
So in my game, which uses action sequences, enemies use an alternate 'attack' skill instead of the default attack skill (which is skill #1 in the database). This works fine until an enemy is given the 'Confuse' state, which causes the enemy's basic attack to default back to skill #1.
Is there a simple way to set it up so that, when an enemy is confused, it'll use a different skill instead of the default attack skill? I have some Javascript experience, so I figured the change could probably be made in this block of code:
Perhaps a simple 'if' statement ('if' subject is enemy, use x skill, else setattack?)
Thanks for your help.
So in my game, which uses action sequences, enemies use an alternate 'attack' skill instead of the default attack skill (which is skill #1 in the database). This works fine until an enemy is given the 'Confuse' state, which causes the enemy's basic attack to default back to skill #1.
Is there a simple way to set it up so that, when an enemy is confused, it'll use a different skill instead of the default attack skill? I have some Javascript experience, so I figured the change could probably be made in this block of code:
Code:
Game_Action.prototype.setConfusion = function() {
this.setAttack();
};
Perhaps a simple 'if' statement ('if' subject is enemy, use x skill, else setattack?)
Thanks for your help.
