As title, here is my code.
X should be state i's name, what should I replace with it?
Code:
<Before Eval>
if (target.isEnemy()) {
var text = target.name() + '\n';
text += '\\px[100]\\c[4]ATK:\\c[0] ' + target.atk;
text += '\\px[300]\\c[4]MAT:\\c[0] ' + target.mat;
text += '\n';
text += '\\px[100]\\c[4]DEF:\\c[0] ' + target.def;
text += '\\px[300]\\c[4]MDF:\\c[0] ' + target.mdf;
$gameMessage.add(text);
}
// Check if target have state that id = 1~700
for (var i = 1 ; i < 700 ; i++ ) {
if (target.isStateAffected(i)) {
var text = "X" ;
$gameMessage.add(text);
}
}
</Before Eval>
X should be state i's name, what should I replace with it?