How to get state name from enemy?

GO TO ADMIN PANEL > ADD-ONS AND INSTALL ABSTRACT SIDEBAR TO SEE FORUMS AND SIDEBAR

Roger14

NPC
Joined
Jan 27, 2018
Messages
1
Points
1
Age
16
Hey there, first post here.
I'm using Yanfly's Skill Core, here is my code:

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


for (var i = 1;i < 700;i++ ) {
if (target.isStateAffected(i)) {
   var text = ......;
$gameMessage.add(text);

}
}

</Before Eval>
I don't know what's should be write after "var text = ......"
Can anybody teach me?
BTW, I'm a newbie at english.
 
Top