Condition for "if event 41 is erased" or "if event Self Switch C for event 41 is on"

Hello.

By using Yanfly's MoveRouteCore I have an event set to move to event 41, but it will move to that event even if the event has been erased. Is there a way to check to see if an event has been erased? If that's not possible, then a second (but less desirable) option would be to check if event 41 has Self Switch C turned on... which begs the question: if an event had Self Switch C on when it was erased, does it still have that self switch on?

Thanks!
$gameMap.event(41)._erased will be true if the event has been erased.

Self switches only change when you tell them to change. So if event 41 had self switch C turned on at any point, it will stay on until you turn it off again.

If your event is on map 8, $gameSelfSwitches.value([8, 41, 'C']) will be true if the self switch is on, whether the event has been erased or not.
Thank you, Shaz.

Original thread: https://forums.rpgmakerweb.com/threads/condition-for-if-event-41-is-erased-or-if-event-self-switch-c-for-event-41-is-on.120528/