MV [YEP_EventChasePlayer]Call Common Event When Map Event Leaves Alerted State

EventChasePlayer allows the developer to set a common event that is called when a map event enters its Alerted state. I want to additionally call a different common event when the map event stops pursuing the player.

When the map enemy is alerted, I want to add its ID to a list, and then remove it from the list if the enemy gives up.
Did you try putting the common event script into the 'endEventChase' function?
$gameTemp.reserveCommonEvent(X);
MV can only reserve 1 common event, so don't know if that can cause a potential problem with multiple enemies. But you can probably just remove from your list from the function without common events.

Original thread: https://forums.rpgmakerweb.com/threads/yep_eventchaseplayer-call-common-event-when-map-event-leaves-alerted-state.175237/