world map damage

Is there a script for the world map that make you receive damage over time if you are 2-3 squares close to the monster where the monster is moving toward you?
You could always make a parallel process event that checks the position of the monster event and your player...
cool thanks! got it to work

Original thread: https://forums.rpgmakerweb.com/threads/world-map-damage.33400/