[Solved] Help using Yanfly absorption barrier

Hi !

I am using Yanfly's absorption barrier plugin.

I'm making a special enemy.
This enemy receives a barrier of 20000 each turn.

However, if I simply use the plugin as it is, the 20000 barriers will continue to overlap and become unobtrusive.

So, I want to delete the original barrier before or when receiving the barrier and change it back to 20000.

What should I do?
Actor, Class, Enemy, Weapon, Armor, State Notetags:

<Barrier Regen x Turns: +y>
During the regeneration phase, the user will regenerate Barrier Points
that last x turns with a +y/-y value.

make x 1 and y 20000

edit: just make sure your using the "Turns" version of the note tag or they will infinitely stack
Actor, Class, Enemy, Weapon, Armor, State Notetags:

<Barrier Regen x Turns: +y>
During the regeneration phase, the user will regenerate Barrier Points
that last x turns with a +y/-y value.

make x 1 and y 20000

edit: just make sure your using the "Turns" version of the note tag or they will infinitely stack

Oh <Barrier Regen x Turns: +y>
Did the contents of this script mean that?
I thought it would overlap the barrier of y over and over again for x turns. Hahaha.
If so, the number of barriers equal to the number of y is created, and the number of y is calculated as the maximum value instead of being added by the number of y in the next turn, so that exactly that much barrier is recovered during x turns?

ex) <Barrier Regen 2 Turns: +20000>
1.damaged 500-barrier 19500
2. turn end.
3. restored barrier 500 (to 20000)
4. repeat.

right?

So, if I want the barrier to last forever, I have to set the turn of x to 999, etc.?
Actor, Class, Enemy, Weapon, Armor, State Notetags:

<Barrier Regen x Turns: +y>
During the regeneration phase, the user will regenerate Barrier Points
that last x turns with a +y/-y value.

make x 1 and y 20000

edit: just make sure your using the "Turns" version of the note tag or they will infinitely stack

I just tested it...
<Barrier Regen 2 Turns: +20000>
This script is also newly nested with the previous barriers intact.

It was confirmed that the barrier of the character that was not damaged is increased.

I don't think it's this way.
<Barrier Regen 2 Turns: +20000>
would mean turn 1, target gets 20,000 barrier
turn 2, target gets another 20,000 for 40,000 total
turn 3, target loses the turn 1 barrier but gets another 20000. still have 40000

change that 2 into a 1.
turn 1, get 20000 barrier
turn 2, turn 1 barrier wears off, but gains a new 20000 barrier
turn 3, turn 2s barrier wears off, gains a new 20,000 barrier

how long this effect lasts is based on the state duration. the X turns is just how long the barrier for each turn will last

edit: the plugin description talks about how there is 2 types of barriers. here is a direct copy/paste

There are two types of Absorption Barriers: Unexpiring Barriers and Timed
Barriers. Unexpiring Barriers do not expire during the course of battle. The
Barrier Points they acquire, if left untouched, will remain that value. On
the other hand, Timed Barriers will last a certain amount of turns. When the
turns reach 0 during the Regeneration Phase for the user, the Barrier Points
are then stripped away.

--- Example ---

Turn 1 - 100 Barrier Points
Turn 2 - 200 Barrier Points
Turn 3 - 300 Barrier Points

Right now, the user has 600 Barrier Points total. After the Regeneration
Phase, it will become this:

Turn 1 - 200 Barrier Points
Turn 2 - 300 Barrier Points

And the user will have 500 Barrier Points total.
<Barrier Regen 2 Turns: +20000>
would mean turn 1, target gets 20,000 barrier
turn 2, target gets another 20,000 for 40,000 total
turn 3, target loses the turn 1 barrier but gets another 20000. still have 40000

change that 2 into a 1.
turn 1, get 20000 barrier
turn 2, turn 1 barrier wears off, but gains a new 20000 barrier
turn 3, turn 2s barrier wears off, gains a new 20,000 barrier

how long this effect lasts is based on the state duration. the X turns is just how long the barrier for each turn will last

edit: the plugin description talks about how there is 2 types of barriers. here is a direct copy/paste

There are two types of Absorption Barriers: Unexpiring Barriers and Timed
Barriers. Unexpiring Barriers do not expire during the course of battle. The
Barrier Points they acquire, if left untouched, will remain that value. On
the other hand, Timed Barriers will last a certain amount of turns. When the
turns reach 0 during the Regeneration Phase for the user, the Barrier Points
are then stripped away.

--- Example ---

Turn 1 - 100 Barrier Points
Turn 2 - 200 Barrier Points
Turn 3 - 300 Barrier Points

Right now, the user has 600 Barrier Points total. After the Regeneration
Phase, it will become this:

Turn 1 - 200 Barrier Points
Turn 2 - 300 Barrier Points

And the user will have 500 Barrier Points total.


Aha
<Barrier Regen 2 Turns: +20000>

I was misunderstanding the meaning of 2 Turns here.
I was thinking of regenerating the barrier for 2 turns.
Instead of regenerating for 2 turns, the barrier that was maintained for 2 turns was regenerated every turn.

I'll try again.
Thank you.
<Barrier Regen 2 Turns: +20000>
would mean turn 1, target gets 20,000 barrier
turn 2, target gets another 20,000 for 40,000 total
turn 3, target loses the turn 1 barrier but gets another 20000. still have 40000

change that 2 into a 1.
turn 1, get 20000 barrier
turn 2, turn 1 barrier wears off, but gains a new 20000 barrier
turn 3, turn 2s barrier wears off, gains a new 20,000 barrier

how long this effect lasts is based on the state duration. the X turns is just how long the barrier for each turn will last

edit: the plugin description talks about how there is 2 types of barriers. here is a direct copy/paste

There are two types of Absorption Barriers: Unexpiring Barriers and Timed
Barriers. Unexpiring Barriers do not expire during the course of battle. The
Barrier Points they acquire, if left untouched, will remain that value. On
the other hand, Timed Barriers will last a certain amount of turns. When the
turns reach 0 during the Regeneration Phase for the user, the Barrier Points
are then stripped away.

--- Example ---

Turn 1 - 100 Barrier Points
Turn 2 - 200 Barrier Points
Turn 3 - 300 Barrier Points

Right now, the user has 600 Barrier Points total. After the Regeneration
Phase, it will become this:

Turn 1 - 200 Barrier Points
Turn 2 - 300 Barrier Points

And the user will have 500 Barrier Points total.


Certainly, as you said, I was able to see the barrier that lasts for 1 turn.
However, there was no barrier on the first turn of the battle.
<Barrier Points: +x>
When I use this script, it contains a barrier that lasts forever. What should I do?

EDIT)

SORRY
<Barrier Points x Turns: +y>
I passed this script phrase.
Thank you. Works fine.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-help-using-yanfly-absorption-barrier.125423/