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!
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!