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)
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)
<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>
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>