I've developed an enhanced AI script, and so far everything's working well--except that none of the battlers actually do anything. They're smart about it, at least, consuming a lot of system resources choosing the best target and the best skill. But that's all they do. Think about it. They never actually attack or defend or do anything. It's like they've got a Hamlet complex.
So how do I take the next step? Currently they have a target and skill to use against that target. The question is, how do I command them to use it? I've looked at a couple other AI scripts, and it seems that these lines should do the trick:
self.current_action.skill_id = chosen_skill
self.current_action.target_index = target.index
Problem is, they don't seem to be doing anything. Perhaps there's another component I'm not aware of?
So how do I take the next step? Currently they have a target and skill to use against that target. The question is, how do I command them to use it? I've looked at a couple other AI scripts, and it seems that these lines should do the trick:
self.current_action.skill_id = chosen_skill
self.current_action.target_index = target.index
Problem is, they don't seem to be doing anything. Perhaps there's another component I'm not aware of?