MZ Error: EventId(X) is invalid

Hello,
I am working on a game, and in it there is a point where I animate the player slashing.
However, after this animation is done in-game, i get the error in the title.
The "X" is the number after the final eventID on the map. If I add another event, X goes up by one.
I really am not sure as to why this might be happening.
I attached some screenshots of what areas might be causing the error, but besides them I am at a total loss.
Any help is appreciated.
Thank you.
Screenshot 2025-03-06 140631.png
Screenshot 2025-03-06 140643.png
how is EventId(13) called?

as the correct one if its equal to MV, it would be:
$gameMap.event(13) as a correct all, but you need to show the entire
event page (triggers, switches etc) and the scriptcall, not just
a snippet that tells nothing.
how is EventId(13) called?

as the correct one if its equal to MV, it would be:
$gameMap.event(13) as a correct all, but you need to show the entire
event page (triggers, switches etc) and the scriptcall, not just
a snippet that tells nothing.
That's the thing, there never is a call for eventID 13.
Anyways I managed to fix the bug by moving that snippet of code somewhere else. I still would like to know why it happened, but anyways the bug is now gone.
without the entire event page and what you exactly used, it's hard to know.
so far I know, scriptcall or whatever like EventId(13) does not exist.

so you should provide more info in order to get a better answer so we
don't have to guess.

if it's something added by the plugin, we need to know that as well, and
probably link to it so we can check for that one.

Original thread: https://forums.rpgmakerweb.com/threads/error-eventid-x-is-invalid.176042/