Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

How to get state name from enemy?

Roger14

Villager
Xy$
0.00
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