[XP] seeing the damage affinities

i just need to figure out how to see effectiveness of an attack that effective or not

Examples:
If the enemy is weak to Fire: WEAK [150] = (B)/[200] = (A)
If the enemy is neutral to Fire: [100] = (C)
If the enemy is resistant to Fire: RESIST [50] = (D)
If the enemy is null to Fire: BLOCK = (E)
If the enemy is drain to Fire: *Heals the enemy* = (F) < (but you already knew that)

is there something or some code that can do it like this?
In the default implementation you'll find the following values
[0,200,150,100,50,0,-100]
Where the first zero will be ignored automatically.
Both heroes and enemies own the element_rate(element_id) method so the result might help you make conditions to make it display a string that tells you if they're weak or strong or don't care about that specific element, etc.
$game_actors for all actors
$game_party.actors for actors that joined your party already
$game_troop.enemies or $game_troop.members depending on the version of your engine or anybody else's for an existing enemy troop and this one might fail if there's no call to the battle scene.
$data_enemies doesn't own that element_rate method for it's just a data structure...
That would mean that for enemies you'd need to create a new Game_Enemy instance per monster you'd need to review. That won't be necessary if the battle has begun already.
@kyonides
i think it has something to do about this piece of code
Ruby:
if result && elements_correct(skill.element_set) <= 0
  self.damage = "BLOCK"
and this line of code in Game_Battler 3
Ruby:
  #--------------------------------------------------------------------------
  # * Calculating Element Correction
  #     element_set : element
  #--------------------------------------------------------------------------
  def elements_correct(element_set)
    # If not an element
    if element_set == []
      # Return 100
      return 100
    end
    # Return the weakest object among the elements given
    # * "element_rate" method is defined by Game_Actor and Game_Enemy classes,
    #    which inherit from this class.
    weakest = -100
    for i in element_set
      weakest = [weakest, self.element_rate(i)].max
    end
    return weakest
  end
end
but i don't know how it works exactly...
@kyonides
tell me how do i do that???
I think it's important to ask you this: when exactly, during gameplay, do you want to know this?
@kyonides
i think the numbers will have color when affected from curtain affinities
for example:
Yellow or Orange = Weakness
White = Normal (obviously)
Gray = Resist

[Extras]
The word "BLOCK" = Null
Green = Heal

like the Cool Damage Script, where the damage color becomes Red when a CRIT happens.

Original thread: https://forums.rpgmakerweb.com/threads/xp-seeing-the-damage-affinities.124483/