Weird Walking

I would imagine something like this exists in a plugin or maybe could even be evented, but I'm not quite sure how to succinctly phrase what I'm looking for properly for a search... Brain is not working today... :blush:

I'm looking for a way to screw with player directional input basically.
Usually when the player wants to move left, they would press the left arrow key and the character moves left. I want to randomize it. The character instead would move in a random direction.
Imagine a dizzy or drunk state but outside of battle. This would wear off after a certain number of steps.

Any ideas how to accomplish this?
You could setup a switch to turn on for when they are dizzy/drunk and then run a common event for When button Up is down go left, button Down is down go up etc. Just be sure to put that common event as a parallel event.
Imagine a dizzy or drunk state but outside of battle
I have a situation exactly like this in my game, where the player has the opportunity to drink a lot, and was planning to do the same thing. I thought I might turn on a switch that would control a parallel process common event, which would wait a semi-random number of seconds and then move in a semi-random direction. It would look silly if the player is walking up and suddenly they took a step back (not sure you do complete 180 reversals when drunk?), so it would be more like taking a sideways step, without changing facing direction, rather than a completely random direction. The drunker they were, the more often the semi-random movement would happen.

And after a set time (or after sleeping), the effect would wear off (turn off the switch).
I made a plugin for it, if you're interested.
Nothing special, just randomizes the movement while active.
I made a plugin for it, if you're interested.
Nothing special, just randomizes the movement while active.
It works great! This is just what I was looking for! Thanks!
@Ragpuppy87 no problem, although I did forget something, which I've now added.
You said you wanted the possibility of specifying a number of steps. With this version, if you want, you can also put
DrunkWalk 20
And it will automatically wear off after 20 steps. (or, obviously any number of steps you specify)
Let me know if you run into any issues.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/weird-walking.113414/