Event note tag check next to player

What would it look like if I wanted to check an events note tag on the event next to actor? So if a <tree> is on tile next to actor, and I use an water item or skill to let the tree react to it?

I made a common event to check if ANY event is next to player and it worked so far, file is attached.(credit goes to Andar, he helped a lot). Now as said I want to check for certain events through meta data
Hi!
You can use a script call to check if the event has the note:
$gameMap.event(eventId).event().note.includes('<tree>')
It will return true if the event has this note.
if you want that specific notetag, you would have to write a plugin with a regex for checking the notes, because the notes themselves do nothing.

If the exact notetag doesn't matter however, you could use MV's build-in meta function.
please go to the MV help documentation, plugin specification and read about the metadata format.

using that specification to something like <name:tree> you could then check object.meta.name==='tree';
you'll have to replace object with the script code for the event (including its ID) however, and I don't know that code.

EDIT: Ninja'd
Hi!
You can use a script call to check if the event has the note:
$gameMap.event(eventId).event().note.includes('<tree>')
It will return true if the event has this note.
just for clarification to @Prellmarc ... the note here is the "Note" box that put beside the "Name" box in the event editor...


and NOT the one added at the event page using comment event command...

this means the whole event only can have one type of notetags... not different note each event page (which can be done if using comment tag)... this means if you want tree event that in first page (seed phase) use watering can... then second page (grown tree phase) use axe... you cannot do that because you need to use comment tag for it to be unique each page...
As filling up to @Eliaquim and @estriole if you want to use the notebox to check,
you can also best use "selfswitches" to it:

if SS x = OFF
water tree
SS x = ON
else
SS y = ON
end
if SS y = ON
want to chop do tree?
yes/no choices
(SS y = OFF)
else
this tree is already chooped
end

maybe 2nd page to reset it after x time.
but you can have more control over this as well.

there might be other methodes as well, but this can be the included
if it's a tree, or plant or rock etc =)

Original thread: https://forums.rpgmakerweb.com/threads/event-note-tag-check-next-to-player.133925/