Rogue-Like Movement / Chase Mode / Surprise Attack

@sharetha Next time you post code you should use a spoiler and code tags.
Just makes it way easier to read. And I don't have to scroll down a bunch.
Those options are in the toolbar above the text you write just to the left of the save icon.
Giving you tags
Code:
[SPOILER="spoiler"]info[/SPOILER]
that does this.
Spoiler: spoiler
info
And code tags are just the same.
What are the requirments for using this script?

Original thread: https://forums.rpgmakerweb.com/threads/rogue-like-movement-chase-mode-surprise-attack.44421/