How would I make an event trigger that detects when player runs certain distance?

Tried to search for this on the forums, but I couldn't find anything related.


I want to create a parallel process in the background of a map that can detect when the player sprints for more then 5 spaces.


It would then give them a warning that it's not wise to run in this area.


And then afterwards, should the player continue running for another 10 spaces, they would be shown a text box, and then a game over scene.


Do I need a script to accomplish this, or can the default RPG maker logic do this?
Yes it needs to be scripted. I am sure there are people in the scripting forum who can help you out! ;-)

Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-make-an-event-trigger-that-detects-when-player-runs-certain-distance.56342/