This thread is in regards to needing help with accomplishing a function within http://www.yanfly.moe/wiki/Absorption_Barrier_(YEP)
However, anyone with a little JS knowledge I think should be able to help me here, as I'm pretty sure I know how to get the effect I want, but I'm lacking in syntax knowledge.
Surprisingly enough, the plugin doesn't have an option to simply set a battlers barrier points to a particular amount. What it does have, however, is the ability to read the current value of the battlers barrier points, as part of a lunatic mode script.
If I can just read the battlers barrier points, remove 1 from that variable, and then subtract the barrier points by that amount (also a function) then I should be able to set the barrier points to 1 (which is what I'm aiming to do).
In "wrong-syntax words"
<battler.barrierPoints() - read to variable X>
<variable x - 1>
<battler.loseBarrier(value X)>
As I said before, however, I'm pretty lacking in JS knowledge, especially syntax, so I'll need some help with actually making this work.
Thankyou for your help in advance ^.^
However, anyone with a little JS knowledge I think should be able to help me here, as I'm pretty sure I know how to get the effect I want, but I'm lacking in syntax knowledge.
Surprisingly enough, the plugin doesn't have an option to simply set a battlers barrier points to a particular amount. What it does have, however, is the ability to read the current value of the battlers barrier points, as part of a lunatic mode script.
If I can just read the battlers barrier points, remove 1 from that variable, and then subtract the barrier points by that amount (also a function) then I should be able to set the barrier points to 1 (which is what I'm aiming to do).
In "wrong-syntax words"
<battler.barrierPoints() - read to variable X>
<variable x - 1>
<battler.loseBarrier(value X)>
As I said before, however, I'm pretty lacking in JS knowledge, especially syntax, so I'll need some help with actually making this work.
Thankyou for your help in advance ^.^