Simple Script Request, Have State -> Give Param / XParam

Title says all here are some examples.

Have state 25 give +5% crit per turn while active

Have state 20 give +5 tp /turn while active

Have state 15 give +5 Luk while active

Have state 10 receive 5 HP per attack

Any help would be appreciated 🙂
For things that will happen during attack/damage, you can use Yanfly's lunatic scripts for that...

For things that happen during events like turn-end while you have a certain state, lunatic scripts can also do that

as for additional stats, I think yanfly's bonus parameters can do it, not sure though

just go to yanflychannel.wordpress.com

Original thread: https://forums.rpgmakerweb.com/threads/simple-script-request-have-state-give-param-xparam.16683/