States, how do I display them propperly and 'upgrade them' like in SMT/persona.

I've got the main yanfly plugins and the buff and state core plugin.
Is there a way to move the state icons that the player has? It only shows up to 2 and if there are two states it hides the end of the atb gauge.
Or is it possible to rotate the states an actor has like for enemies?
I also have a passive state activate when the character has a lot or a little MP. Is there a way to dynamically change the mp bar color or text to show that this state is active to save on state space?

Finally how do I 'upgrade a state' like in SMT games. Like, when a player reapplys ATK up 1 it becomes ATK up 2.
I tried using the following code in the state tag but kept on getting undefined.

<Custom Action End Effect> console.log("state check pre start" + target.getStateCounter(11)); if (target.getStateCounter(11) > 1){ console.log("state check"); target.removeState(11); target.addState(64); } </Custom Action End Effect>



1657466882441.png
Like, when a player reapplys ATK up 1 it becomes ATK up 2.
ATK-Up would be a buff, not a state.

buffs and debuffs are automatically going from -2 to +2 for all parameters, so if a double buff or double debuff is what you want you need nothing.
only if you want more than two buff levels you would have to use a plugin, and then one for buff/debuffs and not for states (although there is a good chance that yanfly's plugin already has that option and you just looked at the wrong place believing it to be a state option)

Original thread: https://forums.rpgmakerweb.com/threads/states-how-do-i-display-them-propperly-and-upgrade-them-like-in-smt-persona.149341/