I've been working on an enhanced AI script, and after incorporating some major changes, certain battlers will no longer attack. Because I made many revisions, it's difficult to isolate the source of this problem. What I've done, instead, is extensive troubleshooting. It's taken me to this point at the end of my code:
p battler.current_action.kind = 1
p battler.current_action.skill_id
p battler.current_action.target_index
By the time this snippet is used, all battlers are on track to actually perform an action. That is, the system prints that they have a chosen skill and target. My question is, how does RGSS actually execute "battler.current_action." I suspect the problem lies there about.
Thanks!
p battler.current_action.kind = 1
p battler.current_action.skill_id
p battler.current_action.target_index
By the time this snippet is used, all battlers are on track to actually perform an action. That is, the system prints that they have a chosen skill and target. My question is, how does RGSS actually execute "battler.current_action." I suspect the problem lies there about.
Thanks!