Libra && Plugin Updates 41 tag edit need help.

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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)
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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.
 

killerfer

Veteran
Veteran
Joined
Nov 4, 2015
Messages
198
Reaction score
50
First Language
Portuguese
I think you should add 'Name: ' with the quotation marks before the target.name. See if that works.
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
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 
 
Last edited by a moderator:

killerfer

Veteran
Veteran
Joined
Nov 4, 2015
Messages
198
Reaction score
50
First Language
Portuguese
What if you put the plus sign between them: 'Name: ' + target.name()
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
What if you put the plus sign between them: 'Name: ' + target.name()
wow it works :D DONE thanks :)

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

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top