Yanfly Absorption Barrier (auto removal)

I would like my Barriers to be castable in/out of combat, but this creates an exploit where you can get unlimited barriers.

To resolve this, I am attempting to remove the barrier anytime you rest at an Inn, by using the command line: clearAbsorptionBarrier()

This command is already built into the Yanfly script, and is associated with Auto removal the the start/end of combat.


Can anyone advise me how to call this command at other times? My java knowledge is near-to infantile.


Thanks in advance,

GEA
Have you tried $gameActors.actor(x).clearAbsorptionBarrier() where X is your actor's ID? Just put it in a script call.
Gretzy scores on the open net!

Thanks, JR =)

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-absorption-barrier-auto-removal.83387/