Wait by Variables?

Hello, i want to ask what is the script to make the game wait by a variable value?
I tried this but received undefined error:
$gameInterpreter.wait($gameVariables.value(1));
Thank guys 🙂
There is no $gameInterpreter. There is an interpreter for every event on the map.

This should give you what you're looking for:
Code:
this.wait($gameVariables.value(1));

When you try something and it gives you an error, post the error here (preferably what's in the Console log when you hit F8). Could be that you're really close and just need to tweak something, so the error message will sometimes point to exactly what the problem is, when it might not be obvious just looking at the command.

Original thread: https://forums.rpgmakerweb.com/threads/wait-by-variables.87978/