Making a tile deal continuous damage

As the title says, I'm trying to make a tile do constant damage, instead of the singular activation stepping on a damage tile does. Is there a sneaky way to do this with events, or could you point me towards a good script for it?

Thanks in advance.

Would something like this work? You could designate a damage tile via a region to turn on a common event that constantly damages you over time, and then have the surrounding tiles turn it off again. Granted there might be more elegant solutions, but that's what comes to mind first, haha.

alternatively, you could probably keep it all to a single common event with that above script, where the damage is happening, and check if the player is currently in that damage region before continuing the damage, and if they're not, turn the event off. Which might be tidier.
Set the interval which the damage will repeat. Tiles must be set to damage tiles and set the tile id.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-tile-deal-continuous-damage.153270/