Absorption Barrier Plugin

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
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.
Try this:


<Custom Target Barrier 4 Turns>


value = target.mhp * 0.2;


</Custom Target Barrier 4 Turns>
Shaz - Thanks for doing that. Sorry, I'm a noob 🙂


Luxanna - It worked! Thanks 😀

Original thread: https://forums.rpgmakerweb.com/threads/absorption-barrier-plugin.56840/