I've been improving enemy AIs recently but I've hit a roadblock for my next steps. I wanted to add a "reconsider" function that will check if the currently selected skill is even worth using against the currently selected target. Then it will reselect a different target if it decides it isn't, or if NO target is worthwhile, it will pick an entirely new skill.
An example of this is if a skill causes Bleeding and the current target is already Bleeding; a bit of a waste of an action, which is what I want to avoid.
My problem, however, is that I can't for the life of me find where or how the enemies decide their target. I could just be being silly but it has eluded me thus far. I've looked around in
I'd greatly appreciate it if anyone can point me in the right direction!
Thanks.
An example of this is if a skill causes Bleeding and the current target is already Bleeding; a bit of a waste of an action, which is what I want to avoid.
My problem, however, is that I can't for the life of me find where or how the enemies decide their target. I could just be being silly but it has eluded me thus far. I've looked around in
Game_Battler, Game_Action, and even RPG::Enemy::Action. Probably other places.I'd greatly appreciate it if anyone can point me in the right direction!
Thanks.