Event attributes

Hi
I want to add some info to events placed on map to indicate whether the event is enemy or npc or what not
I havent found best way to store this info but I was thinking of using the event name for this. For example i would have "ene_orc" which I can parse via script so I know its enemy type of orc

or is there a better way?

thx!
Events have a note field you can use for things like this, and if you enclose them in <> it automatically parses them as a property called meta on the event. For example, assuming an enemy ID of 5 for orcs, if you did <enemy:5>, then the event's .meta.enemy would return 5, which tells you it's an orc enemy.
That works just fine. You can also, of course, put notetags like so many plugins do.

If you put <enemy:orc> in the event's notes, then check meta.enemy it will return "orc".

For example
Code:
$gameMap.event(15).event().meta.enemy
will give you the enemy notetag of event 15 (or undefined if it doesn't have one).

@Trihan the ninja! 🤣
Nice stuff!
thx

Original thread: https://forums.rpgmakerweb.com/threads/event-attributes.162092/