Need Help with an Analyze/Scan Skill

So i'm trying to make a skill called "Analyze" , when used on an enemy it will show it's stats.
The problem is that stats like Accuracy , Dodge/Evasion don't show quiet right... For example: An enemy with 80% Accuracy will show like 0.8 in the Window, i would want it to be 80%.
I'm also using Alistair's AP_Block and i want them to show but seems like it's not so easy..
Here's an image + the skill formula(It's pretty much yanfly's "libra" but edited a little)
Spoiler: Image
Screenshot_178.png
Spoiler: Skill Formula
<Before Eval>

if (target.isEnemy()) {

var id = target._enemyId;



var text = target.name() + '\n';

text += '\\px[50]\\c[4]Strength:\\c[0] ' + target.atk;

text += '\\px[300]\\c[4]Intellect:\\c[0] '+ target.mat;

text += '\\px[600]\\c[4]Body Shield:\\c[0] '+ target.def;

text += '\\px[900]\\c[4]Mind Shield:\\c[0] '+ target.mdf;

text += '\n';

text += '\\px[50]\\c[4]Accuracy:\\c[0] ' + target.hit + '%';

text += '\\px[300]\\c[4]Physical Dodge:\\c[0] ' + target.eva + '%';

text += '\\px[600]\\c[4]Magical Dodge:\\c[0] ' + target.mev + '%';

text += '\\px[900]\\c[4]Critical Dodge:\\c[0] ' + target.cev + '%';

text += '\n';

text += '\\px[50]\\c[4]Healing Efficency:\\c[0] ' + target.rec + '%';

text += '\\px[300]\\c[4]Item Efficency:\\c[0] ' + target.pha + '%';

text += '\\px[600]\\c[4]Stamina Cost:\\c[0] ' + target.mcr + '%';

text += '\\px[900]\\c[4]Counter Chance:\\c[0] ' + target.cnt + '%';

text += '\n';

text += '\\px[50]\\c[4]Physical Toughness:\\c[0] ' + target.phyblockrate + '%';

text += '\\px[400]\\c[4]Magical Toughness:\\c[0] ' + target.magblockrate + '%';

text += '\\px[800]\\c[4]Toughness Efficency:\\c[0] ' + target.blockreduction + '%';

$gameMessage.add(text);

}

</Before Eval>
For the normal stats that are percentages, it is as simple as multiplying it with 100, e.g.:
Spoiler
text += '\\px[50]\\c[4]Accuracy:\\c[0] ' + (target.hit * 100) + '%';

For the others I am sorry, I don't know. Is it a free plugin. Could you provide a link to it?
Have you looked into the plugins code. Are the properties really called "phyblockrate", "magblockrate" and "blockreduction"? Are they properties of Game_Battler or Game_BattlerBase?
It seems to me, that this is not the case.
For the normal stats that are percentages, it is as simple as multiplying it with 100, e.g.:
Spoiler
text += '\\px[50]\\c[4]Accuracy:\\c[0] ' + (target.hit * 100) + '%';

For the others I am sorry, I don't know. Is it a free plugin. Could you provide a link to it?
Have you looked into the plugins code. Are the properties really called "phyblockrate", "magblockrate" and "blockreduction"? Are they properties of Game_Battler or Game_BattlerBase?
It seems to me, that this is not the case.

Thanks for helping me BurningOrca.
I looked into it and found the soultion for the block rates and reduction. They seem to already work without the * 100.
text += '\\px[50]\\c[4]Physical Toughness:\\c[0] ' + target.blockRate(0) + '%';

text += '\\px[400]\\c[4]Magical Toughness:\\c[0] ' + target.blockRate(1) + '%';

text += '\\px[800]\\c[4]Toughness Efficency:\\c[0] ' + target.blockReduction() + '%';
Glad I could help you.
text += '\\px[50]\\c[4]Physical Toughness:\\c[0] ' + target.blockRate(0) + '%';

text += '\\px[400]\\c[4]Magical Toughness:\\c[0] ' + target.blockRate(1) + '%';

text += '\\px[800]\\c[4]Toughness Efficency:\\c[0] ' + target.blockReduction() + '%';

target.blockRate and target.blockReduction are functions. As you have already found out, you need to call them by using parantheses and feeding them parameters inside the brackets. target.blockRate(0) returns the Physical Block Rate while target.blockRate(1) returns the Magical Block Rate.
Too late now but maybe it's helpful to know about the paranthesis thing for future reference with other plugins 😀.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-an-analyze-scan-skill.118739/