Yanfly absorption barrier - a skill effective against absorption barriers

Hi all,

I have what I hope is a quick question.

I use yanfly’s absorption barrier in my game. Basically, enemies have barriers that absorb damage.

What I want to do is create a skill that, when used, is effective against absorption barriers and knocks them down quite a bit. So instead of using normal attacks and skills, you’d use this skill to destroy the barrier.

I thought barrier penetration would do that, but the way that mechanic works is that it bypasses the barrier. But what I want is to use a skill that can do double, triple or quadruple the damage on absorption barriers, and only absorption barriers (not on the enemies hp). This way you can have an actor deliver this skill and break the barrier without having to spend a lot of turns to break the barrier.

Is there someway to make this work using yanfly’s absorption barriers (and maybe any other plugins)? Or will I need a separate plugin or plugin extension to make it work?

Thanks so much for your time. If I’m not clear on something, let me know and I’ll try to clarify it.
I'm not certain if you want the extra damage to partially punch through to the enemy's HP or not. In the following scenarios, what do you want to happen?

1: The target has no barrier (I'm guess normal damage)

2: The target's barrier points is lower than the damage normally inflicted

3: The target's barrier points is higher than the damage normally inflicted, but lower than the increased damage

I guess overall, the question is what you want to occur in terms of HP in each case.
I'm not certain if you want the extra damage to partially punch through to the enemy's HP or not. In the following scenarios, what do you want to happen?

1: The target has no barrier (I'm guess normal damage)

2: The target's barrier points is lower than the damage normally inflicted

3: The target's barrier points is higher than the damage normally inflicted, but lower than the increased damage

I guess overall, the question is what you want to occur in terms of HP in each case.

Thanks shockra for replying. Essentially, I don't want any extra damage to punch through the enemy's HP. The skill is just for eliminating barriers quickly.

So basically no damage will happen to the enemy's HP, but only a huge amount of damage delivered to the barrier.

So let's say an enemy has really high barrier points. In order to destroy it you'd have to keep wailing on it with attacks. But if you have this skill, you can eliminate the barrier altogether or a very large chunk of it.

Hopefully that makes sense.
OK, so this code assumes that a normal attack occurs only if the target has no barrier at all. In that case, try this notetag in the Skill:

<Pre-Damage Eval>
var shield = target.barrierPoints();
if (shield > 0) {
value *= 3;
if (value < shield) {
value = 0;
target.loseBarrier(shield);
}
}
</Pre-Damage Eval>
Hi shockra. Thanks for providing the code. I tested it out but it didn't seem to work.

However, I did manage to figure out how to make something similar work using the notetags provided in the plugin.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-absorption-barrier-a-skill-effective-against-absorption-barriers.111873/