Varying damage based on Absoprtion Barrier

So, I have no idea how to do this at all.
What I'm looking to do is to increase or reduce the damage of certain skills depending if they damage hp or barrier. By default most skills always strike damage to barrier, until it runs out.
I would like to further specialize skills to anti-barrier and anti-hp types by adjusting their damage based on what they deal damage to.
How could I go around doing this?
What's an absorption barrier? Is this a system you've already implemented or you want to know how to implement an absorption barrier?
The Absorption Barrier plugin has tags to give skills/states the ability to "penetrate" the barrier. So, if you want a skill that deals bonus damage to HP if there is a barrier present, you would use:
<Barrier Penetration: x%>
Then, in the damage formula of the skill itself, you could do:
(DAMAGE FORMULA HERE) * (b.isStateAffected(X) ? 3 : 1)
Where "X" is the STATE ID of your barriers (you set this part up in the plugin parameters itself)
The 3 after the ? is the multiplied damage, and the 1 after the : is the base damage of the skill.
What's an absorption barrier? Is this a system you've already implemented or you want to know how to implement an absorption barrier?
http://yanfly.moe/2016/02/13/yep-70-absorption-barrier-rpg-maker-mv/
Oh yeah sorry, I meant this

Original thread: https://forums.rpgmakerweb.com/threads/varying-damage-based-on-absoprtion-barrier.104288/