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.

Elemental Resistance Issues

Culex

Member

In Window_Base, I want to add a definition allowing me to draw text based on the elemental resistance of a character. Example :

High resistance (D-F in the database) will draw an "O".
Normal resistance (C in the database) will leave the area blank.
Low resistance or weakness (A-B in the database) will draw an "X".

I will eventually move on from Window_Base to Window_Status in order to draw the elemental resistance factor next to the name of the element, which I have already drawn. Example :

draw_actor_resistance(@actor, x, y, #) ... "#" being the number of the element in the database.

I know the elemental rates are in Game_Actor, but I have no idea how to integrate them into Window_Base in order to display the actor's resistance with text.

I hope that all makes 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