Roguelike-esque movement, enemy moves when player does

I've been trying to find a script for a long time now that grants roguelike movement to events and the player when they're in dungeons.

I've tried 

TDS's Move With Player

Tam_Fey's Script snippet

and I tried taking just the movement part out of 

Saba Kan's Random Dungeon Generator

but it doesn't seem to work if I don't take the rest of the scripts with it.

The problem with the other two scripts I've used is, although the events do move when the player moves, they don't seem to activate fast or often enough. They're always behind by about few steps in speed, and I've set the walking speed for both to 4. I guess I can just kind of settle for these if there's no luck, but I'd really want to get it right.

The three functions I'm looking are

Roguelike enemy movement, moving 1 step for every step the player takes. It'd be nice if it worked alongside 8-Directional Movement too.

When enemies touch the player they activate Battle Processing, I can do that in events, so that's alright.

I'd like if pressing Z allowed the player to "attack forward" by moving forward one space and back to his original space quickly, similar to regular Roguelike games. 

When an enemy is hit during this movement, the battle that ensues is a 'Preemptive Strike'. 

Just this motion counts as 1 step, so it could serve as a lure for enemies to approach nearer before you SWOOP IN FOR THAT PREEMPTIVE

Also, a nice region fog script like many VX roguelike demos would be nice. Currently I'm trying out Tsukihime's Region Fog, but it seems quite strict in comparison.

I can make do with the scripts that I have now, but I thought to ask just in case I could get help from anyone out there to help it hit just the mark I imagined. If the most efficient way is to event it, I'd gladly do it too.

I'd appreciate any help at all that I can get on these.

Thanks in advance!
You can make the enemy events parallel process that when a switch is on, it runs a  "move toward player" route.

Then a custom event also parallel process with a condition for $game_player.moving? then it changes the the prior switch value, enabling enemies to move.
Oh well, i found some time to throw in a working script.

Basically it does what Sabakan's enemy do BUT

It's slightly different from Sabakan's because i find it hard, almost impossible, to escape the enemy if

it dashes with the player. Player can still dash away from the mob if they want to.

(If you don't like it, disable map dash and have the player go yelling as the mob closing in 😀 )

And i have thrown in a little extra to change its move speed and frequency when in chase mode,

as well as that "!" mark on its head to indicate it's in chase mode.

Enemy not in chase mode will become half-transparent (thus the rogue-like-ness?),

if you like, you can set it to full "hide" and make the chase range short for a surprise attack type mobs. 😉

Only enemy with <enemy> name tag will turn into rogue mode when the switch is on, so you don't have to worry about everything turning into a rogue with the switch on.

Chase mode still work without the switch as long as the <enemy> tag is there, the event should be using the new update moveroute. It should be chasing the player a little smarter than before, and still goes into semi-transparent when out of range,

the only difference is it will not wait for the player to move.

Plus, almost everything can be configured.

Have fun with it 😉

Get the Script here: Click me

Original thread: https://forums.rpgmakerweb.com/threads/roguelike-esque-movement-enemy-moves-when-player-does.42989/