I'm having a problem where my AI's are always targeting the main player, even when there are additional combatants within the active player group. I'm using a grid battle system. I've got three battle AI's attached to the enemy combatants (detailed below.) I'm sure I've missed something but not sure what.
- Clear found targets -> then a series of check grid distance nodes at 3/5/10/30/50/100 to find enemies, with success leading to Move Into Distance and failure leading to the next distance check (if all fail it leads to a None node)
Move Into Distance
- Check Grid Distance is Equal 1: success -> Rotate to target; fail -> Check Grid Distance is greater than 1: success -> grid move toward target (if reachable -> rotate to target); fail -> Rotate to target.
- Grid Rotate to target -> Check Grid Distance is equal 1: success -> chance fork to determine which sword swing attack to use; else fail in grid distance check -> use all-out-defense ability.