I would like a script that makes an event temporarily be set to 'through' when the player or another event comes in contact with it and is standing in the way of its 'route' (meaning it is being stalled by the player because the player is standing in front of the NPC). For example, an NPC would be slowly walking his custom route. However, the player stands in the NPC's way and the NPC will be stuck forever until the player moves away. This can cause problems for events running on time. This is why I would like a script in which you can put a tag in the event's name, and upon any contact with the player or another NPC, the event will temporarily be set to 'through' so that it can walk past the player without problems.
The amount of time (in frames) the NPC has to wait until it becomes 'through' will be customizable. As well as the amount of frames the NPC will be in the 'through' setting until it turns off.
So yeah, for example, I could put the tag [THROUGH] in an event's name, and in the script I say that any event with this tag will start a countdown of 120 frames (this is a random number at the moment) upon first contact (and continuous) of the player. If the player has moved away from the custom path of the NPC, the countdown will be aborted. However, if the player is still in the way the countdown will keep going. After the 120 frames are done, the event's passability will be set to 'through', it will walk over the player, and it will continue on its custom route again. Then, after a set amount of frames, its passability will return back to the default.
Hope this isn't too overly-complicated or too much to ask.
Thanks in advance.