Libra && Plugin Updates 41 tag edit need help.

with the tag below how do i add Name: before the enemies name when scanning

uses 2 plugins...

http://yanfly.moe/2015/10/13/yep-8-skill-core/

http://yanfly.moe/2015/10/10/yep-2-message-core/

<Before Eval>
if (target.isEnemy()) {
var id = target._enemyId;
$gameSystem.addHpGaugeEnemy(id);

var text = target.name Name🙁) + '\n';                (something like that?)
text += '\\px[100]\\c[4]HP:\\c[0] ' + target.hp;
text += '/' + target.mhp;
text += '\\px[400]\\c[4]MP:\\c[0] ' + target.mp;
text += '/' + target.mmp;
text += '\\px[700]\\c[4]TP:\\c[0] ' + target.tp;
text += '\n';
text += '\\px[100]\\c[4]ATK:\\c[0] ' + target.atk;
text += '\\px[400]\\c[4]MAT:\\c[0] ' + target.mat;
text += '\\px[700]\\c[4]AGI:\\c[0] ' + target.agi;
text += '\n';
text += '\\px[100]\\c[4]DEF:\\c[0] ' + target.def;
text += '\\px[400]\\c[4]MDF:\\c[0] ' + target.mdf;
text += '\\px[700]\\c[4]LUK:\\c[0] ' + target.luk;
$gameMessage.add(text);

var weakness = '';
var resist = '';
var immune = '';
var absorb = '';
var elements = $dataSystem.elements;
for (var i = 1; i < elements.length; ++i) {
var name = elements;
var rate = target.elementRate(i);
if (rate > 1) {
weakness += name + ' ';
} else if (rate < 0) {
absorb += name + ' ';
} else if (rate === 0) {
immune += name + ' ';
} else if (rate < 1) {
resist += name + ' ';
}
}
if (weakness === '') weakness = 'None';
if (resist === '') resist = 'None';
if (immune === '') immune = 'None';
if (absorb === '') absorb = 'None';
weakness = '\\c[4]Weakness:\\c[0] ' + weakness + '\n';
resist = '\\c[4]Resist:\\c[0] ' + resist + '\n';
immune = '\\c[4]Immune:\\c[0] ' + immune + '\n';
absorb = '\\c[4]Absorb:\\c[0] ' + absorb;
text = weakness + resist + immune + absorb;
$gameMessage.add(text);
}
</Before Eval>

question.jpg
What plugin? Please add a link to it so people know what you're talking about (and don't have to go hunting for it themselves)
What plugin? Please add a link to it so people know what you're talking about (and don't have to go hunting for it themselves)
there i added the plugin link thanks for telling me.
I think you should add 'Name: ' with the quotation marks before the target.name. See if that works.
I think you should add 'Name: ' with the quotation marks before the target.name. See if that works.
nice try.....

var text = 'Name: ' target.name() + '\n';

var text = 'Name: 'target.name() + '\n';   

var text = 'Name:'target.name() + '\n';

var text = 'Name:' target.name() + '\n';

all 4 ways of putting it gives an error....

SyntaxError: Unexpected identifier

    at Game_Action.applyBeforeEval 
What if you put the plus sign between them: 'Name: ' + target.name()
What if you put the plus sign between them: 'Name: ' + target.name()
wow it works 😀 DONE thanks 🙂

var text = '\\c[4]Name:\\c[0] ' + target.name() + '\n';

Original thread: https://forums.rpgmakerweb.com/threads/libra-plugin-updates-41-tag-edit-need-help.54200/