How to use text stored inside enemies notes?

Hi I'm doing the classic bestiary beginner script (following master trihan's tutorial), making sure I can personalize it a little. I'm trying to add a small description for each enemy, imported from the notes box in the enemies database, just like the monsters's stats come from their respective boxes. I drew a new window and I am able to put a simple string in it using quotations BUT I just can't seem to find a way to acces things stored in those pesky NOTES. What is the variable or the array or whatever where the data is stored in??? Please help me.
EDIT: Realized this is for Ruby, not Javascript. Sorry
The notes aren't pesky, they're just stored right in the database. The engine won't access them directly. In XP they didn't exist, and still, this maker went to the DB to retrieve several key data at some point. VX added SOME notes while VX ACE ABUSED of them. :eswt: I guess it enables the scripters to let the average dev to be lazy once they've learned how to do certain stuff. 😛

OK, how do you access the DB and then the notes?

Easy to learn. Just find a reference, a global variable, storing the DB data for items or skills, etc.

$data_skills for skills... you got the point by now.

Then you gotta realize all of them are large arrays. Arrays = Lists for the average joe.

$data_weapons[0] can't be used because it's empty by default. You beginning at position 1. Always.

Finally, you just need to call its notes like this:

Ruby:
$data_armors[1].note

In singular. Obvious, isn't? 😀

The only catch here is that it will print an empty or LARGE string (text) if accessed.

How do you get access to some PART or SECTION of that string?

That depends heavily on how much do you understand about Regular Expressions or Regex for short in Ruby. Otherwise, you'd have to expect nobody else has ever used the same terms you entered in your note box. :eswt:
Ohhh so $data_enemies.note stores the enemy notes. Thanks! I scrambled trough every class in the script and couldn't find any variable using notes. Guess knowledge about rpg maker is what i need if i want to write code more easily. I'm no noob at coding i know c++ by the book and object oriented programming is no news to me, but the way data is structured in RPGM seems like something I'll have to learn along the way
Friendly reminder for anybody reading this: Never forget that all those $data_ variables are arrays. You'll always need the brackets to access any value starting at number 1.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-text-stored-inside-enemies-notes.165369/