Armor stats based on actor params?

Hi,

I'm using a lot of Yanfly's plugins. I want to add a notetag in an armor that will apply stat changes based on the actor's current health.

<Custom Parameters>
while HP<=50%
actor max mp + x
</Custom Parameters>

Is something like this possible?
Code:
<Custom Parameters>
if (user.hpRate() <= 0.5){
maxmp = x;}
</Custom Parameters>
You can try this. Hope it works.
Code:
<Custom Parameters>
if (user.hpRate() <= 0.5){
maxmp = x;}
</Custom Parameters>
You can try this. Hope it works.

So that did work, however when doing a battle test, there is extreme lag. Maybe because it is constantly trying to check user hp %?
I'm afraid so, but it is the only way i know.
At that point, I'd think you should use a passive state instead? It's easy enough to have the armor apply a passive state that gives +X MP, with a passive condition of HP < 50%.
At that point, I'd think you should use a passive state instead? It's easy enough to have the armor apply a passive state that gives +X MP, with a passive condition of HP < 50%.
This works. Thank you 🙂 How do I go about just increasing param by a flat amount? Instead of a %. In the state I added the passive condition and a type paramater of max mp and that worked. But I want to just increase max mp by say 12 points.

Original thread: https://forums.rpgmakerweb.com/threads/armor-stats-based-on-actor-params.106606/