Step Reduction Method?

Hey there gang, I have a question I am hoping to get some thoughts on. I want to have a state called injured that wears off after a certain amount of steps. No problem there. Then I want to have an npc that when recruited reduces the amount of required steps needed to remove the state. That's where the problem is.

Now the injured state is attached to all my different "Attack" buttons, so like Melee Attack, Range Attack, Dual Attack Etc. and then a lot of my skills also all have a chance to injure. Therefor making different versions of the injured state wont really work. And I would really rather not make a step counting parallel process system. I'm really hoping someone knows of maybe a plugin or a script that can adjust the remove by step amount, or maybe know some clever way to make this work.🙂

Anyways I hope someone can help out here, and thanks for taking a look. Have a good one all.
Maybe you can add a duplicate state that requires less steps to remove and only use that one when the new character is in your party?
Being that the state is attached to the standard attack button as well as most of my skills how would I make them all adjust to the proper state?
That depends on how you have it set up. Is the state 100% chance to be applied? Do you have some sort of common event set up with each skill?
you can create a dummy state that negates the ailment, and then negates itself.
basically, you *trigger* a removal as opposed to *processing* a removal.

you can't set how many turns it would take to remove a state, but you can check for how many steps the player makes, and from there, trigger a state, which is in itself a resistance to the ailment, and itself.

it's a clever use of the processing order: at addition time, you process the effects which are first, add state (state being resist ailment) and then add state again (state being resist *resist ailment*)

a neat property of Boolean logic: A == !!A.
from there: A . B == !![A . B] == ![!A + !B]
That depends on how you have it set up. Is the state 100% chance to be applied? Do you have some sort of common event set up with each skill?

State % fluctuates from 5% to I believe 50% is the current highest. Some Skills have common events but not all of them.
you can create a dummy state that negates the ailment, and then negates itself.
basically, you *trigger* a removal as opposed to *processing* a removal.

you can't set how many turns it would take to remove a state, but you can check for how many steps the player makes, and from there, trigger a state, which is in itself a resistance to the ailment, and itself.

it's a clever use of the processing order: at addition time, you process the effects which are first, add state (state being resist ailment) and then add state again (state being resist *resist ailment*)

a neat property of Boolean logic: A == !!A.
from there: A . B == !![A . B] == ![!A + !B]

This is sounding promising, Although I will have hundreds of possible recruitable characters, would some sort of step counter have to be set up to monitor each one? But it got me thinking about triggering additional states states so I would start with the lowest level of steps required say 25 steps then at the end of the 25 steps if say switch Injured1 is active it could trigger a second injure state without the trigger affect at the end. Although I have never done a trigger at the end of a state, I am not sure if it will be an issue with so many possible recuitable actors.
Although I will have hundreds of possible recruitable characters, would some sort of step counter have to be set up to monitor each one

well, one thing is certain: if you do use this method, you only need one actuator to take care of the states.
everything else is processing logic.
so, if you can find a way to store multiple values into a single variable, you should have half of the problem solved.
I'd look into conversions to binary or hexadecimal..... that way you can use a byte or half a byte to store a number of steps.
regardless of how many actors you have, they'd all feed data into the same process.

That should be doable without plugins, although I'm not sure about the writing of data to the variable. I believe it should be manageable through Game Data type, or Script type.

say, you have 10 actors.... if you store "00D30", that can translate to
0, 0, 0, 0, 3, 1, 0, 3, 0, 0
with the proper conversion
Thanks much gstv87 you have given me hope🙂. Looks like I've got some homework to do now. I appreciate the help.

Original thread: https://forums.rpgmakerweb.com/threads/step-reduction-method.79562/