How To Make An Absorption Barrier Based On Attack? (Yanfly Absorption Barrier)

Hi, I'm using Yanfly's Absorption Barrier Plugin and the way it works is fine, but I would prefer my barriers to based on how much Attack the user has.
What I want is a skill that puts up an Absorption Barrier based on 2x the user's Attack.
Any help?
Code:
<Custom User Barrier 5 Turns>
    value = Math.round(user.atk/ 4)
</Custom User Barrier 5 Turns>

Something like this should do the trick I would think. Used it in a jam game of mine.
Code:
<Custom User Barrier 5 Turns>
    value = Math.round(user.atk/ 4)
</Custom User Barrier 5 Turns>

Something like this should do the trick I would think. Used it in a jam game of mine.
Thanks, the code worked fine. Just had to change the symbol since it wasn't multiplying correctly.
Yeah the code I'm using was for division. I was sure you'd be able to get that sorted, haha.
This thread can be closed, problem solved.
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-absorption-barrier-based-on-attack-yanfly-absorption-barrier.162654/