Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved]Executing battler.current_action

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!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top