critical hit question

I would rather do this without scripts, but I'll post this here anyway. How would I do a damage formula and/or change scripts so that if attacker goes before it's target (or goes before everybody) it's a guaranteed critical hit
You could go by this:

(Your actual formula).tap { b.result.critical = true  if b.current_action }

This will set the critical flag if the target battler is still queued with a planned action (in the standard battle system actions are removed after they were executed).
Thanks! I just replaced a project I was working on (i didn't think people would like a battle mechanic) with a western RPG

I thought this would be perfect for a "Draw!" skill
It sounds just the job for such a skill.

Original thread: https://forums.rpgmakerweb.com/threads/critical-hit-question.38698/