- Joined
- Jun 5, 2023
- Messages
- 16
- Reaction score
- 2
- First Language
- English
- Primarily Uses
- RMMV
I have Yanfly Buffs & States core, as well as Yanfly Absorption Barrier. I'm trying to make it so that, as long as any battler has barrier points, they receive a defense bonus = 1/2 their remaining barrier points. I have the following code:
on the Barrier State set by the plugin, but it doesn't seem to be doing anything. I'm pretty new to js so I think my code is definitely wrong but i'm not sure what to do from here
Code:
<Custom Parameters>
def = $battler.barrierPoints() / 5;
</Custom Parameters>
on the Barrier State set by the plugin, but it doesn't seem to be doing anything. I'm pretty new to js so I think my code is definitely wrong but i'm not sure what to do from here