Event Note Tag

I have a note tag in an event's Note box. I can get the value of this note but how do I get the eventId of the event(s) with this note?
In that case you need to make an array for storing the numbers, and check every event in the map if it has the value and if yes, copy it's ID into the array.
" check every event in the map if it has the value and if yes, copy it's ID into the array. " 

How do I do that part ?
you need a loop counting through all events, and using if to check which ones fit.


How good is your programming experience/knowledge?


I didn't give more details because that is one of the basic techniques needed in programming, and if you need more details we would need more info about what you're trying to do and how your script is supposed to work.
I have just started learning. I understand the loops and I know how to get the information separately but I am having trouble writing the statement. I want to search the map events for the event ID with the specified Notetag.
$gameMap.events().filter(function(evt) return ...).map(function(evt) return evt.id())


where ... is the condition that says whether the event's note tag matches the string you're after.


I haven't tested this or looked at a guide - you may need to confirm the syntax/function names.
So how do I write the callback function? 
I could tell you that if you provided info about what note tag you're looking for, and what you're doing with it once you get the list 😉


Since you're posting in the Learning Javascript forum, I assumed you already had something set up for both of those things and you just wanted to know how to get the list of event ids.
I am trying to get my events note tagged with <Actor:#> to get the note tags from the corresponding actor in the database.

I was thinking I needed the event IDs on the current map but I don't know. Was trying that filter method also but I couldn't get the callback down.
for what purpose?
So I can assign parameters from QuasiParamPlus to my Player and all the enemies I create. I will be doing an ABS style plugin and I feel like it will be much easier for damage calculations among other things.
I got it.

Original thread: https://forums.rpgmakerweb.com/threads/event-note-tag.52302/