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.

error during battle

The problem is that the Window_Base#draw_actor_hp method uses a method only specific in the Window_BattleStatus script in the other.

To fix it: find and change:

Code:
   if $scene.is_a?(Scene_Battle)
     if actor.hp != hp_fatal
       draw_actor_hp_num(actor)

to

Code:
   if $scene.is_a?(Scene_Battle) && self.is_a?(Window_BattleStatus)
     if actor.hp != hp_fatal
       draw_actor_hp_num(actor)

Hopefully that fixes it. If not, let me know.
 
Sweet it worked. I love you. That code comes up twice, so I had to paste that extra part in two spots. The other spot was this:

Code:
 if $scene.is_a?(Scene_Battle) && self.is_a?(Window_BattleStatus)
     if actor.sp != sp_fatal
       draw_actor_sp_num(actor)
     end
   else
     draw_actor_sp_original(actor, x, y, width)
   end
 end

But the code for that part is a little different than the other. So did I do that right? Or will that cause any problems later? I hope I'm making sense.
 

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