Check multiple events at the same time.

Hi guys. (Google translate)
I have a question.
Is there a way to check all the events of a map at once?
I wanted to use this script. This script works perfect.
JavaScript:
if ($gameMap.event(5).event().note.includes('blabla')){};
But I must do it for each Event <"$ gameMap.event (n)">.
Is there any <"$ gameMap.allEvent">?

StepSound plugins can do that. It checks which event has the "noteTag X" and adds sound to it.

I wanted to know if it can be done within a "Command Event Script".
technically impossible, the computer can only compare two values at the same time.
you'll need a loop through all events to check each one once, and if that note is there you add it to a result-array.
there might be javascript functions which help with that, but internally even those functions go through the array in a loop one element at a time.

Original thread: https://forums.rpgmakerweb.com/threads/check-multiple-events-at-the-same-time.141621/