Working on an instant state effect for a certain attack

I was constructing a skill called precision shot:

Before the character shoots, I wanted to add 15% to accuracy to this particular skill, along with increased critical activating just before the character strikes in the same turn. I tested the possibility of this using a death state. Giving my character ATK state death 100% since it is easier to read than guessing the accuracy of a hit. In the skill I first made a common event which will give a character the desired extra features for the strike. Then I added this as the first effect in the skill. The damage formula is just 100 damage. And set up a battle with a dummy target. It turns out, that the common event will play but the state isn't added until the next turn. So it doesn't happen instantly. I wanted to mimic a character concentrating a certain shot. And since there doesn't appear to be an easy way to adjust the accuracy of a hit, only the success rate of a cast, I figured using a common event to boost the parameters might help. But it doesn't seem to work this way. What can I do?
You can use my Skill/Item Apply Extensions script + Shaz's Dynamic Features to increase hit and crit before the skill is used, then remove them afterwards... or you can also opt to just use states instead of Shaz' script...
I just went with a state that adds a skill and increases critical + HIT. 1 turn state.
I would suggest this, Execution States. It adds a state just for the one attack then  removes it.

I myself, use Yanflys Followup Skill, use a skill to buff me, have it set for 1 action removal and then Followup with the skill of your choice, its very nice.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/working-on-an-instant-state-effect-for-a-certain-attack.25095/