MZ How do I make a State have different effects on Actors?

So, I have a specific State which drains HP like poison, but on a specific Actor, gives more ATK (like a Pokemon with Guts ability)

Idk if my code is okay, so I ask in case.


JavaScript:
b.actorId() === 1 ? b.atk + (50%)
no, the code is not correct - percentages don't work that way.
and where would you even use it? States don't have a damage formula...

Theoretically there are several ways to handle this, but I don't know what plugins exist for MZ.

The non-plugin option would be to make two states with the different effects and have the skill try to apply both states. Then make your actor 1 immune to the first state and all others immune to the second state.
no, the code is not correct - percentages don't work that way.
and where would you even use it? States don't have a damage formula...

Theoretically there are several ways to handle this, but I don't know what plugins exist for MZ.

The non-plugin option would be to make two states with the different effects and have the skill try to apply both states. Then make your actor 1 immune to the first state and all others immune to the second state.
My idea was add a kind of buff, and I thought I could do it if I put the code in the State's Notes
State's Notes
The notefield by itself has absolutely no function. It is for notes, nothing more.

However since it does exist in the database, a plugin can read out and parse the entire notefield, and if it detects data in a dormat it can handle it can process that data.

but that always requires a plugin, and it will always do what the plugin is programmed to do with that text.

so you basically would need a plugin that reads out and evals the javascript part, and processes it in the right context to make that state have that intended ability.
a plugin can read out and parse the entire notefield
Can Skills and States Core work with that?



I am using it but I'm unsure if works for those kind of these
With Skills and States Core, you might be able to create conditions for each actor... IF characterX is afflicted by conditionY, inflict characterX with conditionZ.

That's concept code by the way... so don't copy paste it. Point is, the basic conditions would be conditionY, and the unique conditions add-ons or over-rides per character would be condition Z.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-state-have-different-effects-on-actors.177990/