Any way to make the Wait command use a Variable? [Solved]

I'm making a timing-based baseball minigame. I have a common event loop that cycles through all of the hits you can get (single, double, out, etc) and it stops on the current result when you hit enter. I have it set up to use different wait times for each result so that certain outcomes are harder to get (for example, Out waits for 15 frames while Home Run only appears for 5 frames).

I was hoping to add an extra layer of complexity by giving each batter different stats. If you have a guy who is better at hitting home runs, then while he's batting the Wait command should wait longer on the Home Run space and make it more likely for you to end up with that outcome. I could come up with some kind of formula to calculate the exact wait time for each result, but since Wait only lets you input a number, I'm not sure how I would go about applying that variable.

Does anyone have any ideas on the best way to tell the Wait command to use a variable as its number? Right now my best solution is having a separate conditional branch for each batter (if Batter A switch is on, wait for 5 frames, if Batter B switch is on, wait for 10 frames, etc) For two teams of 9 players though, that would make a TON of conditional branches, especially if I wanted to later incorporate the pitcher's stats into the equation as well. There's gotta be a better way to do it... right?
Script call:

$gameMap._interpreter.wait($gameVariables.value(15));
Replace 15 by the number of the variable you want.
Maybe you can sort of do this in reverse. Have  an event that checks the variable stat and use a few conditional branches to set the wait time. 

Would look like this:

Control Branch: Variable [variable linked to stat] == X

>Wait: 5 frames

Control Branch: Variable [variable linked to stat] == X2

>Wait: 10 frames

Like that? Or does that not do what you want?
Script call:

$gameMap._interpreter.wait($gameVariables.value(15));Replace 15 by the number of the variable you want.
Whoa, I had no idea this command existed. As hard as I try, I guess I can never break free of that rpgm2k3 mentality. 😛

But this is exactly what I needed. Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/any-way-to-make-the-wait-command-use-a-variable-solved.50710/