Player touch event to expire

Hi there, I have searched around for this and wondered if there is a plugin or script I could use to have a player touch event expire after a certain amount of time. 

I'm trying to achieve a ghost to pop up and then move towards the player, if he touches the player it starts a battle but if after X seconds and nothing has been touched - then the event deletes itself or resets.
Please do not post the same questions multiple times, just because nobody has answered in your preferred timeframe.


Closing.

Original thread: https://forums.rpgmakerweb.com/threads/player-touch-event-to-expire.52812/