How to Access "Note" Box?

Pretty much what I want to do is access the "Note" box that you can write comments or notes that is shown in various tabs of the Database.

For example, let's say I have a plugin that changes the color of the text of a Skill/Item/Weapon/Armor based on the color specified in their Note:

<Set Color: 2>

How can I access the string that is in the Notes?

Please use as much detail in your answer! Thanks!  😉  
Example.

Objects with notes have meta variable.

So if you have object item and you had <set_color: 2> in the item's note field. You'd access it with:

Code:
item.meta.set_color;
Example.

Objects with notes have meta variable.

So if you have object item and you had <set_color: 2> in the item's note field. You'd access it with:

item.meta.set_color;
I got really excited when I saw how simple it was...

...but it didn't work.

I directly input your example plugin and it also didn't work...

So....yeah....

;_;
@SumRndmDude,

What didn't work for you? Did it crash? Or did it simply not show any coloring? On an empty project it should work fine.

Spoiler
[IMG]http://puu.sh/kXACq/2455d057e4.png[/IMG]
@SumRndmDude,

What didn't work for you? Did it crash? Or did it simply not show any coloring? On an empty project it should work fine.

Spoiler
2455d057e4.png
Sorry about that, it turns out yours works fine.

I was setting it to "2," which in mine turns it to red since the colors are based off of the Window.png, but on yours turns the text to white.

So I got a little confused.

However, mine still doesn't work.

Here's what I have:

Window_Base.prototype.drawItemName = function(item, x, y, width) {    width = width || 312;    if (item) {        var iconBoxWidth = Window_Base._iconWidth + 4;        if(item.meta.Set_Color)        {            this.changeTextColor(this.textColor(item.meta.Set_Color);        }        else        {            this.resetTextColor();        }        this.drawIcon(item.iconIndex, x + 2, y + 2);        this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);    }};I've checked to make sure everything is perfect in the Notes and that the plugin is turned on, but I cannot figure out why my text colors do not change...
In note field,

is it <Set_Color: 2> or <Set Color: 2>?

(It has to be <Set_Color: 2>)
I used your script and run it through firefox's dev tools.

There is a syntax error. You forgot a ")" here

this.changeTextColor(this.textColor(item.meta.Set_Color));

That's why your script isn't running in the first place.
In note field,

is it <Set_Color: 2> or <Set Color: 2>?

(It has to be <Set_Color: 2>)
Yeah, it's there.

Thanks for your previous advice!

I used your script and run it through firefox's dev tools.

There is a syntax error. You forgot a ")" here

this.changeTextColor(this.textColor(item.meta.Set_Color));

That's why your script isn't running in the first place.
😮

I see! 

I never thought about that. Thanks so much!

It works now.

Now the question I must ask now is:

How do I make it so I can do <Set Color: 2> without using the underscore?
on the enemy object there is a note or noteBox element. You can access it with that.
Now the question I must ask now is:

How do I make it so I can do <Set Color: 2> without using the underscore?
If it must be "Set Color" instead of "Set_Color" (or even "SetColor"),

my guess would be that you have to use regular expressions.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-access-note-box.48465/