"Random" movement

Apologies if this has been covered, I did a basic search but am quite pressed for time.

Is there any easy way to fix the "random" movement in MV? By that, I'm referring to the fact that under "random" movement, an event will still walk towards the right most of the time. I was able to fix this back in VX, but I have no idea where to seek the area in MV where I could edit the algorithm, lol.

Thanks!
Really?  I've never heard of that.  I used Ace though, not VX.

Find out where you made the change in VX, and then look for a method with a similar name in MV.  I suspect it will be in rpg_objects.js in the Game_Character section, as that is the part that handles move routes.
Hmm.. I ended up trying a few things just now.

Found the area involved with this calculation. It is as follows:

Game_Character.prototype.moveRandom = function() {

    var d = 2 + Math.randomInt(4) * 2;

    if (this.canPass(this.x, this.y, d)) {

        this.moveStraight(d);

    }

};

 

My issue was that I had a randomly wandering event that went predominantly to the right.

 

I tried numerous variations of the formula to no real avail, so then I decided to screw around and give it a custom route of simply "Move at Random."

 

Not quite Yahtzee initially.. but after changing that math up there to being simply Math.randomInt(5) * 2 and removing the preceding "2 + " I have, with the combination of my custom route, pretty randomized movement at last.

 

Thanks for the pointers! It had been probably 2+ years since I delved into much code of any type!

Original thread: https://forums.rpgmakerweb.com/threads/random-movement.49355/