Check damage integer in scripts?

I'm trying to check the damage a skill would do inside of a script, but I'm having a hard time finding that.

I have this bit of code in my script:

$game_actors[$game_variables[8]+1].skills[0].damage

Just imagine that this DOES access a ready skill successfully from a created actor.

How do I get an integer from it so I can start doing math?
the damage property of RPG::Skill is actually another class which is RPG::UsableItem:😀amage. To get the actual value, you would probably do something like


eval($game_actors[$game_variables[8]+1].skills[0].damage.formula)
Thank you very much! I tried many different accessors, but it's the first time I've heard of eval().
eval isn't an accessor, it's a command to process ruby code - and the damage in the skills is set by a formula that needs to be processed, it isn't a single value.

Original thread: https://forums.rpgmakerweb.com/threads/check-damage-integer-in-scripts.41411/