MZ How to extract map notes?

This isn't really a high-priority question, I can work around it if I can't get an answer.

Basically, I want to essentially have a notetag on certain maps, so that I can do certain backend processing when the maps are transferred to. I want to do it this way to essentially automate one of my game's mechanics, without having to clarify the relevant data in transfer/autorun events on every map. This way I can simply tag maps with the default values I desire, and have the engine automatically handle what it needs to with that data when the map is entered. This is highly desirable because it's a persistent mechanic that could change ON the map in question, so I don't want to assume that two adjacent maps with the same default value won't have a change when moving between them and neglect to hard-code the default setting. I think there also may be a need for random map transfers in a few parts, so having that data attached directly to the map itself would cut down on making sure all the t's are properly crossed.

I also am unsure just how large and/or complex this project or the mechanic's overall impact will ultimately be, so I'm hesitant to assume what I will and won't need. At this stage, I don't believe I need to worry about attaching anything related in save data, I do have some interaction with game variables to handle that.

I tried looking at the $gameMap object in the dev tools on a test map, but found no mention of note data. I haven't pored over the source code yet, but data pertaining to the current map in debug seems quite... sparse. So I figure the probability is high that I'm not looking in the right place.

Any assistance would be appreciated. Thanks in advance!
Hi,

Do you mean $dataMap.meta ?

Edit: And $dataMap.note is in string format
Hi,

Do you mean $dataMap.meta ?

Edit: And $dataMap.note is in string format
Yes, thank you. Now I feel like an idiot. Must REALLY be off my game to forget about $data and $game versions of an object. I'm going to blame lack of sleep and the caffeine not kicking in yet when I posted. lol
It happens from time to time... I was deving plugins and opened project from RELEASE dir and edited JS files from development project dir and wondered why won't even console.log work!?! 😀

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-extract-map-notes.146080/