There doesn't seem to be a way to create a barrier based on a variable value but there must be a way using the custom barriers that you put in the note section. The problem is I don't know java script so I have no idea how I could make a custom barrier using variables.
I have this for one of my skills to make a custom barrier and it seems to work fine, I just don't know how I could edit this to use a variable instead of damage taken:
<Custom User Barrier>
user.clearAbsorptionBarrier();
user.gainBarrier(user.hp/2, 3);
user._result.hpDamage = -user.hp/2;
</Custom User Barrier>
I have this for one of my skills to make a custom barrier and it seems to work fine, I just don't know how I could edit this to use a variable instead of damage taken:
<Custom User Barrier>
user.clearAbsorptionBarrier();
user.gainBarrier(user.hp/2, 3);
user._result.hpDamage = -user.hp/2;
</Custom User Barrier>