Calc damage in skill description

I'm looking for a way to show a skill's damage calculation (w/o variance) to display in a skill's description.  So essentially the skill has a name and under it will be stats that show the variance, damage, and element type (etc.)

http://himeworks.com/2013/11/convert-code-eval/

I'm trying to get it to work using something like this, but not sure how to display current actor (as actors can change classes and actor[x] won't work).  Any help is appreciated.
You can make new escape codes.
You can make new escape codes.
I'm not 100% sure what you mean by that-- there's a way I can define something other than actor[x]?  If so, could you point me in the right direction?

Actually, I was looking at this add on:

https://yanflychannel.wordpress.com/rmvxa/core-scripts/ace-message-system/message-actor-codes/

This might do what I need (I can add a custom variable for the calcs I need) but I'd need to be able to define x as the current actor rather than specifying which actor to calc off.  I'm finding that class changing systems are less popular than I thought.
Yeah, you will basically need to add a new \whatever code. That needs editing of the Window_Base scripts.
Hmm, ok I'll give it a shot and see if I can get something going when I get home later.
Well, I tried and failed.  I'm just not sure how to get the actor_id to be associated with the actor who owns the skill; but I'm not really much of a programmer.  Any help with an escape code that would show the current selected actor (that I can use with either of the above mentioned scripts) would be much appreciated.
I'll write something once I get to open one project of mine. I made some escape codes before to show the data from my skill level script in the skill descriptions...
I'll write something once I get to open one project of mine. I made some escape codes before to show the data from my skill level script in the skill descriptions...
That would be great, thank you.
*Polite Bump*  (If you had a chance to grab that project and check the escape codes)
Hello. To evaluate a skill's damage you need a user and a target.

Try this:

Code:
#- Use \DMG[skill_id,user_id,target_id]#- The target and the user are actorsclass Window_Base    alias lesdis_convert_ec convert_escape_characters  def convert_escape_characters(text)    result = lesdis_convert_ec(text)    result.gsub!(/\eDMG\[(\d+),(\d+),(\d+)\]/i) { draw_skill_dmg($1.to_i,$2.to_i,$3.to_i)}    result  end    def draw_skill_dmg(id,user_id,target_id)    skill = $data_skills[id]    user = $game_actors[user_id]    target = $game_actors[target_id]    #-    value = skill.damage.eval(user, target, $game_variables)    value *= target.item_element_rate(user, skill)    value *= user.pdr if skill.physical?    value *= user.mdr if skill.magical?    value *= user.rec if skill.damage.recover?    return value.to_i.to_s  end  end
Thanks Lecode, I appreciate your looking into it.  I'll give this a shot when I get home tonight.
Hello. To evaluate a skill's damage you need a user and a target.

Try this:

#- Use \DMG[skill_id,user_id,target_id]#- The target and the user are actorsclass Window_Base alias lesdis_convert_ec convert_escape_characters def convert_escape_characters(text) result = lesdis_convert_ec(text) result.gsub!(/\eDMG\[(\d+),(\d+),(\d+)\]/i) { draw_skill_dmg($1.to_i,$2.to_i,$3.to_i)} result end def draw_skill_dmg(id,user_id,target_id) skill = $data_skills[id] user = $game_actors[user_id] target = $game_actors[target_id] #- value = skill.damage.eval(user, target, $game_variables) value *= target.item_element_rate(user, skill) value *= user.pdr if skill.physical? value *= user.mdr if skill.magical? value *= user.rec if skill.damage.recover? return value.to_i.to_s end end
This makes sense, but not exactly what I'm looking for.  Essentially, all I need is a way to show the current actor who has the skill's stats rather than defining an actor's index number.  The calc I can do in a new escape code that just has the damage formula in it, but my problem is that I can't get actor[x] to just show the actor who is accessing the skill. I hope I'm articulating that correctly, and I really do appreciate the effort thusfar!
I see. 

Try this:

Spoiler
#- \DMG[skill_id,target_id]#- The target is an actorclass Window_Base alias lesdis_convert_ec convert_escape_characters def convert_escape_characters(text) result = lesdis_convert_ec(text) result.gsub!(/\eDMG\[(\d+),(\d+)\]/i) { draw_skill_dmg($1.to_i,$2.to_i)} result end def draw_skill_dmg(id,target_id) return "??" unless skill_dmg_esc_valid_scene? skill = $data_skills[id] user = SceneManager.scene.skill_dmg_esc_user target = $game_actors[target_id] #- value = skill.damage.eval(user, target, $game_variables) value *= target.item_element_rate(user, skill) value *= user.pdr if skill.physical? value *= user.mdr if skill.magical? value *= user.rec if skill.damage.recover? return value.to_i.to_s end def skill_dmg_esc_valid_scene? smng = SceneManager smng.scene_is?(Scene_Battle) or smng.scene_is?(Scene_Skill) end endclass Scene_Skill def skill_dmg_esc_user return @actor end endclass Scene_Battle def skill_dmg_esc_user return @skill_window.actor end alias lesdis_cs command_skill def command_skill lesdis_cs @skill_window.help_window.refresh end endclass Window_SkillList attr_reader :actor attr_reader :help_windowend 
Let me know If you're using other scenes than Scene_Battle and Scene_Skill to access the skills.
That works the way I need, thanks so much!

Original thread: https://forums.rpgmakerweb.com/threads/calc-damage-in-skill-description.43452/