Hello Guys,
im trying to get the amount of absorbtion points from the yanfly absorbtion plugin shown in the states icon.
this is the lunatic code i use, which wont work at all:
I hope someone could help me out!
best regards 🙂
im trying to get the amount of absorbtion points from the yanfly absorbtion plugin shown in the states icon.
this is the lunatic code i use, which wont work at all:
JavaScript:
<Custom Apply Effect>
user._currentBarrierPoints = user.barrierPoints();
user.setStateCounter(StateID, user._currentBarrierPoints);
</Custom Apply Effect>
<Custom Remove Effect>
user._currentBarrierPoints = undefined;
user.setStateCounter(StateID, 0);
</Custom Remove Effect>
<Custom Deselect Effect>
var points = target.barrierPoints();
if (points !== target._currentBarrierPoints) {
target.setStateCounter(StateID, points);
}
</Custom Deselect Effect>
<Custom Regenerate Effect>
var points = user.barrierPoints();
if (points !== user._currentBarrierPoints) {
user.setStateCounter(StateID, points);
}
</Custom Regenerate Effect>
I hope someone could help me out!
best regards 🙂