Non % Values for Ex-Parameters

A friendly hello first,

i have searched the forums and didnt find something helpful for my problem. Apologies if it was already talked about or solved.

Im working with rpg maker mv and use yanflys auto-passive-states plugin to create skills that can be learned via job points that give the user some supporting stats in the battle.

Generally everything works as it should. But i encountered a problem when trying to create some passive skill that once learned gives the user some mp-regeneration. I want the value for that be of course a quite low fixed one and not some increasing one because of increasing max mp. But as the ex-parameters just can be changed via the % values, i cant find a way to make that happen.

Any idea how to make this ?

Thanks in advance for every hint !!
Hello! And welcome! 🙂

You can try using Yanfly's Buff & State Core, then insert this notetag into your state.

<Custom Regenerate Effect>

var value = x;

user.gainMp(value);

</Custom Regenerate Effect>

Just change x to whatever value you want your mp regeneration be.

I havent tested this, but it should work.

Hope that helps!

- Riff

EDIT: removed your quote as it is unnecessary.
Thats working ! Thanks a lot Riff !

Just one problem stays: If i do it your way then the effect will also take effect outside of battles and i want it to only apply inside of battles.

Any idea how to make it work that way ?
By default, even when you use the normal percentile hp/mp regeneration parameter in states, they will still tick outside battle.

I guess an alternate solution is to change 'Custom Regeneration Effect' to 'Custom Turn End Effect' (or other custom timing effects). Just keep in mind that if you have any percentile hp/mp regeneration/degeneration (using the default parameter), i believe they will tick on different times than the above (they tick along with the Custom Regeneration Effect, of course).

Sorry, my English is all over the place, but i hope it's sufficient. 🙂

- Riff
Thanks again for the suggestion Riff.

The "Custom Turn End Effect" didnt make it not be in effect outside of battles. But the Custom Action End Effect does. Now i only need to figure out how to make this way produce some popup with the regenerated value aswell

Thanks a lot !
Ah, i see. You can try adding this at the end:

user.startDamagePopup();
Working !

Big thanks Riff !!!!

Original thread: https://forums.rpgmakerweb.com/threads/non-values-for-ex-parameters.54672/