Absorption Barrier Plugin

HatJump

Villager
Member
Joined
Feb 10, 2016
Messages
23
Reaction score
8
First Language
English (UK)
Primarily Uses
N/A
Hi all,


I'm attempting to make a skill that grants the target 20% of their max hp as a shield whenever it is cast using Yanfly's Absorption Barrier plugin. Since I know nothing about Java and there isn't a single basic terminology guide I can find anywhere, I don't actually know what the command for max hp is. Currently I have the following, which only grants a barrier based off of current hp:


<Custom Target Barrier 4 Turns>


value = target.hp% 20                                 <------------- I need this to be max hp instead of current hp


</Custom Target Barrier>


Can anyone help out?


Many thanks,


HatJump
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to JS Plugin Support (or you could have posted in Yanfly's thread). Please be sure to post your threads in the correct forum next time. Thank you.
 

Luxanna

Veteran
Veteran
Joined
Nov 8, 2015
Messages
67
Reaction score
23
First Language
English
Primarily Uses
Try this:


<Custom Target Barrier 4 Turns>


value = target.mhp * 0.2;


</Custom Target Barrier 4 Turns>
 

HatJump

Villager
Member
Joined
Feb 10, 2016
Messages
23
Reaction score
8
First Language
English (UK)
Primarily Uses
N/A
Shaz - Thanks for doing that. Sorry, I'm a noob :)


Luxanna - It worked! Thanks :D
 

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

Latest Threads

Latest Posts

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,848
Messages
1,016,974
Members
137,562
Latest member
visploo100
Top