Game Dev Contest
Join in on the Game Development contest with over $300 in prizes!
Banner Creation Contest!
Help the community out by creating your own version of the banner, and potentially having that as the main banner!
Resources
Check out our resources :D
Upgrade your account
Help out the community, and keep the website running and fully up to date by donating! :D

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
RM Skill
Designer
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