question about note tags

How can I make the use of note tags like maps, skills, etc.?
example: like if i put a message string in the map's note setting it "Hello World" and then the called functions inside the script section grabs that string variable from the note tag then prints it out whenever the player enter's the map.
Here's a written tutorial by Himeworks that explains the basics pretty well!

Also, on the off chance you (or someone else reading this) didn't already know, when editing a map, anything you put in the "Display Name" box will show up whenever you transfer the player to said map, which will give you the effect you described without needing to use note tags. Although, I'm assuming that was just an example.
short explanation: the notes box is a property of the object we're talking (whichever one), and as such, it is a string.
to grab a note tag, it's useful to format the function that grabs it so that it focuses on a specific format (out of many that could be in there), so that you can section that string into sub strings.
grabbing a string can be something as simple as
string['substring'] => 'substring' (if present), otherwise, " "
or more complex, like
string[/(\[A-Z]\w{1,10})/][3] => the last 3 characters of any substring that starts with a capital letter and is at most 10 characters long.
so, with that:
-grab the object from the program in question, by name, by memory address, or by object ID.
-make sure it has a note box property and grab the string it contains.
-and from the string that is the content of the box, go find what you're looking for, either with a regular expression, a search function, or directly by string[position].
if you wrote the program and the object, you should know what's in there or what could potentially be in there, so you can grab that directly.
if not, you'll have to write a search function that screens out what could potentially cause an error.
Usually, items and other stuff have a {insert name here}.note property.
Keep in mind it's convenient to use some sort of unusual symbol as delimiter like <> or \/ and the like. What people prefer is the <> "brackets".

Original thread: https://forums.rpgmakerweb.com/threads/question-about-note-tags.152746/