Limit Movement to Variable

So, this probably should be simple, but I can't really think of it at the moment. I'm trying to make it where you have a D6, but instead of an autorun where it moves your character for you, you move yourself, but only for the amount of steps on the dice. I was thinking just putting a blank autorun event that turns on when you're done, but I'm not sure if that will make it hard to do other things like check what tile you're on. I haven't used Ace in a while, so I can't remember if the autorun will take over and not allow me to run any other events.
Autorun will prevent anything else. What you can do is change the tiles and make them passable or not passable, depending on what you are trying to achieve at that moment. You can either use two identical maps (probably easier) or change the tiles themselves with a script call (which I am unable to figure out at the moment since I cannot access the engine).

For the distance itself: store it in a variable, store the current player position, trigger a switch that allows the player to move and trigger a parallel process event. Said parallel process event checks the player position and compares it with the stored one (easily done: (CurrentX - StoredX).abs + (CurrentY - StoredY).abs) and, when reaching the right value, trigger off the switch.

This should do it.
I actually did manage to figure it out. I ended up forcing the movement in an autorun page of the event so when the player moves, the dice number counts down. Took some figuring out, but it's working like a charm now. Thanks for the help, though.

Original thread: https://forums.rpgmakerweb.com/threads/limit-movement-to-variable.150660/