Show predicted damage in tool tips like in VXA

Hi can anyone give me guidance, or convert, reproduce the script that shows damage in a tool tip into plug in.  Where if you add <formula> tag in a skill tool tip like  "Deals <formula> fire damage." it display as "Deals 300 fire damage."

Here is the script from VXA:

Code:
class Game_System   def test_enemy    @test_enemy ||= 1  end   def test_enemy=(id)    @test_enemy = id    @enemy = Game_Enemy.new(0, id)  end   def dummy_enemy    @enemy ||= Game_Enemy.new(0, test_enemy)  end end class Window_Help  alias predict_damage_set_item set_item  def set_item(item)    if item      if item.respond_to?(:damage)        set_text(predict_damage(item))      else        set_text(item.description)      end    else      set_text('')    end  end   def predict_damage(item)    desc = item.description.gsub(/<formula>/i) do      if $game_party.in_battle        a = BattleManager.actor      else        a = $game_party.menu_actor      end      b = $game_system.dummy_enemy      v = $game_variables      damage = item.damage.eval(a,b,v).to_i.abs    end    desc  end end
You have screen shot?
How it worked is it reference a dummy monster in data base ID1 with 1 defense.

Basically it does this in VXA, but it would be nice if there's a plug in for this in MV.

WAIdodk.png


5Qzrd56.png
This would be awesome, I'm sure someone know how to do it.
Okay I got this working. I have this working for the basic stats and regular formulas.
If the player has some weird custom damage formulas then this can't recognize that.

It does a more accurate calculation for damage:

if you are in battle then it averages all of the enemies stats and gives you a predicted damage.

if you are not in battle then it average all party members stats and uses that.

When you are in battle it gives you a good idea, if you are not in battle there is no way to know which enemy to compare it too so it just assumes the enemies you will be fighting are around your strength. You put <damage> in the description for it to show.

Original thread: https://forums.rpgmakerweb.com/threads/show-predicted-damage-in-tool-tips-like-in-vxa.49383/