Hi there, I want to ask about mark in note. I use a lot of plugin in my note tags, so I want to make a note there, am I right to put // as a note? or just leave a word without sign?
about note function
RPG Maker MZ Supportnote boxes are for *notes*
the fact that they *can* read instructions, is the exception.
not all notebox notes *must* be instructions, therefore, writing any notes that sport no significant tag should be of no difference to any plugins.
......please let us not fall into the trend of normalizing the exception as the rule, on something like *notes*!
instructions written on note boxes are the EXCEPTION, not the rule!
if a plugin gets confused between an instruction and a note when grabbing a string from the note box, it is badly designed.
the fact that they *can* read instructions, is the exception.
not all notebox notes *must* be instructions, therefore, writing any notes that sport no significant tag should be of no difference to any plugins.
......please let us not fall into the trend of normalizing the exception as the rule, on something like *notes*!
instructions written on note boxes are the EXCEPTION, not the rule!
if a plugin gets confused between an instruction and a note when grabbing a string from the note box, it is badly designed.
You have nothing to worry about. Between <> is metadata. // is comments for javascript. // would only matter if between <> is an eval.
@zotezha
In the particular example that you posted, it doesn't really matter how you do it. Whatever is comfortable for you, and whatever makes it easy to quickly recognize that the text is meant to be a comment, is fine.
The only time it really matters is if your comment is inside a JavaScript note tag. If it's inside a JavaScript note tag, then your comment either needs to have a
Personally, I like to try to be consistent in how I do things, so I would personally probably use a
In the particular example that you posted, it doesn't really matter how you do it. Whatever is comfortable for you, and whatever makes it easy to quickly recognize that the text is meant to be a comment, is fine.
The only time it really matters is if your comment is inside a JavaScript note tag. If it's inside a JavaScript note tag, then your comment either needs to have a
// in front of it, or it needs to start with /* and end with */
Code:
*** You can do a comment out here however you want ***
<JS On Erase State>
// A comment in here needs to look like this
/* Or it needs to look like this */
</JS On Erase State>
Personally, I like to try to be consistent in how I do things, so I would personally probably use a
// even outside the JavaScript tags, but it's not necessary.I see, thank you guys for the answer, appreciate that. 😉
Yes, I will do the same. Cheers
I have MOG Boss HP Plugin, and to activate Boss HP bar in note it doesnt need <>, the help page said just write "Boss HP" to enemy note. But I dont know the plugin will get confused or not if theres another string. sorry for my bad english
I learn something new thankyou!
Mog is an exception. They have been coding for a very long time. I do not know if Mog knows that modern RPG Maker has extractArrayMetadata and extractMetadata functions. It is built in note tagging for easier use for plugin developers.
It is okay, Mog might already know, but prefers their own way.
Mog uses note.split(/[\r\n]+/). They also use this.notetags() == "Boss HP" which checks the notes section of each enemy and looks for Boss HP. If Mog were using metadata, then they would be doing something like this: this.enemy().meta.Boss_HP
Do not worry, Mog's plugins will be fine with whatever you do. It is looking for specifically Boss HP, so as long as you don't do BossHP or Boss HP, then you will be fine.
Awesome, I never see plugin notetags without <> before I use MOG plugins. hope MOG will release another awesome plugin or games
that's his hook for knowing it's an instruction.
if the plugin just grabs everything indiscriminately, it's badly designed.
Original thread: https://forums.rpgmakerweb.com/threads/about-note-function.148491/