How do I create a buff that allows an ally a 100% hit rate for a certain move

I wanna create a move called Enabler for one of my actors that enables them to buff 100% attack rate for a certain move for another actor. How would I go about doing that?
It has to be a state, not a buff - that is a technical difference in this engine that uses buffs only for specific things, most options are done by defining states.


However, there are still a few limitations on the default engine that you need to trick your way around.


The HIT% is for all skills, not just specific ones. You can force the player to use a certain skill by adding that and sealing all other skills as part of the state. That would not be exactly how you describe it, but possible in default.


If you want it exactly as you describe, you'll need a script to change the way how the battle works.
It has to be a state, not a buff - that is a technical difference in this engine that uses buffs only for specific things, most options are done by defining states.


However, there are still a few limitations on the default engine that you need to trick your way around.


The HIT% is for all skills, not just specific ones. You can force the player to use a certain skill by adding that and sealing all other skills as part of the state. That would not be exactly how you describe it, but possible in default.


If you want it exactly as you describe, you'll need a script to change the way how the battle works.

Could you explain this in more detail please? I'm not quite understanding it all
An alternative approach would be to use the 'Certain Hit' option in the skill creation tab.  Because your OP is not totally clear, the following is merely a guess at what I think you want.


Actor #2, for example, has an ATK of, say, 40.  You want Actor #3 to increase that by 100% for e.g. 3 turns if, and only if, Actor #2 is using the skill 'Super Strike'.  


The problem with using the 'Buff' option in the Effects part of the skill tab is that you can only buff to 50%, not 100%.  So Actor #2 would get an ATK of 60, not the 80 that you want.


So, create a state called Enable.  It doesn't have to do anything itself, except you would set it to last 3 turns.


Create a skill Enable which applies that state at 100% to Actor #2.  Scope, one ally, set to certain hit.  Actor #2 now has that state.


In the damage formula for the Super Strike skill put this:


a.state?(x)? damage formula 1 : damage formula 2 


Let us assume your Enable state is #43 and you are using the default attack formula.  It would look like this:


a.state?(43)? a.atk * 8 - b.def * 2 : a.atk * 4 - b.def * 2


What this is doing is checking to see if the actor (a) has the Enable state.  If yes, then it doubles the attack, if not, then it does the usual one. 
An alternative approach would be to use the 'Certain Hit' option in the skill creation tab.  Because your OP is not totally clear, the following is merely a guess at what I think you want.


Actor #2, for example, has an ATK of, say, 40.  You want Actor #3 to increase that by 100% for e.g. 3 turns if, and only if, Actor #2 is using the skill 'Super Strike'.  


The problem with using the 'Buff' option in the Effects part of the skill tab is that you can only buff to 50%, not 100%.  So Actor #2 would get an ATK of 60, not the 80 that you want.


So, create a state called Enable.  It doesn't have to do anything itself, except you would set it to last 3 turns.


Create a skill Enable which applies that state at 100% to Actor #2.  Scope, one ally, set to certain hit.  Actor #2 now has that state.


In the damage formula for the Super Strike skill put this:


[SIZE=10.5pt]a.state?(x)? damage formula 1 : damage formula 2[/SIZE] 


Let us assume your Enable state is #43 and you are using the default attack formula.  It would look like this:


a.state?(43)? a.atk * 8 - b.def * 2 : a.atk * 4 - b.def * 2


What this is doing is checking to see if the actor (a) has the Enable state.  If yes, then it doubles the attack, if not, then it does the usual one. 

Say it's an attack that hits multiple times to one enemy but only has a 30% chance of hitting (may be lowered) and I wanted a character that could apply something that gives it a 100%, how would that calculate out.
Maybe if your state raised the HIT rate to, say, 150% that would ensure that it would hit every time.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-create-a-buff-that-allows-an-ally-a-100-hit-rate-for-a-certain-move.68325/