Wait command From Variable

Hey guys!

Another tough one here, I have a variable set to be random between 100-900. And I want that variable to translate that information into a wait command. So if that variable chose 120 then it'd wait 120 frames.

I'm aware this could be done in conditional branches but it'd be extremely long winded.
Just use script event and type:
Code:
this.wait($gameVariables.value(idOfYourVariable))
Just use script event and type:
Code:
this.wait($gameVariables.value(idOfYourVariable))
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/wait-command-from-variable.108126/