EAP

Villager
Member
Joined
Jan 29, 2019
Messages
17
Reaction score
2
First Language
English
Primarily Uses
RMMZ
This was given by the help of Discord Coders of Driftwood Gaming
<JS Post-Apply>

if (target.isEnemy()) {

var id = target._enemyId;





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

text += '\\c[14]HP:\\c[0] ' + target.hp;

text += '/' + target.mhp;

text += '\\c[14] MP:\\c[0] ' + target.mp;

text += '/' + target.mmp;

text += '\\c[14] TP:\\c[0] ' + target.tp;

text += '\n';

text += '\\c[14]ATK:\\c[0] ' + target.atk;

text += '\\c[14] MAT:\\c[0] ' + target.mat;

text += '\\c[14] AGI:\\c[0] ' + target.agi;

text += '\n';

text += '\\c[14]DEF:\\c[0] ' + target.def;

text += '\\c[14] MDF:\\c[0] ' + target.mdf;

text += '\\c[14] 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[14]Weakness:\\c[0] ' + weakness + '\n';

resist = '\\c[14]Resist:\\c[0] ' + resist + '\n';

immune = '\\c[14]Immune:\\c[0] ' + immune + '\n';

absorb = '\\c[14]Absorb:\\c[0] ' + absorb;

text = weakness + resist + immune + absorb;

$gameMessage.add(text);

}

</JS Post-Apply>
 

Latest Threads

Latest Posts

Latest Profile Posts

Kanori24 wrote on TheRamenGirl's profile.
I love your profile pic. Definitely one of my favorite scenes from OPM :D
Had a funny feeling about my laptop last night so I moved my project over to desktop via thumbdrive, just experienced my first corrupted project and couldn't be happier about the timing!! *proceeds to copy file onto every thumbdrive in the house*
Test game. Find something broken. Fix. Re-test game. Broken thing fixed but new thing broken that wasn't before. What?!?! Uhg! :kaoangry:

Forum statistics

Threads
122,074
Messages
1,146,301
Members
160,358
Latest member
Vokorish
Top