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.

Finding out if a battler is a certain character? ccoa's battle system

Dko

Member

Hiyas again.
Im just wondering what way could I possibly check which character is currently selected in the battle system when my code reaches
def update_phase3_enemy_select?
I want to check something in $game_actors
 

Dko

Member

So no one has any helpfull ideas? Im sorry if I forgot to mention this is in the section Scene_Battle 3. While really isn't exclusive to Ccoa's side view battle system? I just now thought about posting about it.
 

Anonymous

Guest

@active_battler.id should help you out. That will give you the id number from the database of the currently selected battler.

Without knowing what you're trying to do, I don't think I can help you more than that.
 

Dko

Member

That acttualy helps a lot. Thanks. But if you want an idea of what im doing is I want to check the selected characters stat(One I added in). Then I want to have the character attack that many times that I have the stat set.
 

Anonymous

Guest

You should be able to get that stat through @active_battler.stat, replacing stat with the accessor method name for that stat. @active_battler is a hook to whichever battler (enemy or actor) that is attacking right now. So you'll also want to test to see if it's a Game_Actor if that stat is unique to party members only.
 

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