MV Enemy notetags

Spoiler: Why I need this
By far the largest system I ever made, is the cardgame system for my main project. There was no battle in those games, so I was able to use enemies to create cards. I could select the image, and had 8 numeric values I could give to a card. (MHP, MMP, ATK, DEF, MAT, MDF, AGI and LUK).

I could get pretty far with this, and actually create a huge number of card variety... Like MAT would no longer be mean "Magic Attack" but "Spell trigger" and MDF would be "Spell Id".

I can even use drops, gold and experience for things like cost and rewards...

However, it becomes really confusing when spells use other stats than minions, and those are both different than weapons... It would be okay, if I could work on it daily, but when I have 2 busy weeks where I can't touch my game at all, it becomes a lot harder to remember which stat was used for what by what card type.

So, I tried making a plugin, containing the info that otherwise would have been included in the enemy data. I did this to make things easier, but it complicates every other part of the system so much more. And since a plugin isn't the answer, at least not for simplifying creating cards and decks, I need another solution.

So, the next thing I could think of is Note-Tags.

I wonder if it is possible to read out note-tags using a script call, without the use of a plugin in between.

I want enemy note-tags to contain values like:
Type: 1
Skill: 3
Damage: 4

And use a script call to find out what the value for the type is and store that value in a variable, and what the value of the skill is, and so on.

I am looking for something like: [B]$gameVariables.setValue(1, $dataEnemies[125].name);[/B]
This should put the name of enemy 125 in variable 1. Now I want something similar but for stats that are not in the engine by default.
I wonder if it is possible to read out note-tags using a script call, without the use of a plugin in between.
yes
I want enemy note-tags to contain values like:
Type: 1
Skill: 3
Damage: 4
<Type: 1>, <Skill: 3>, and <Damage: 4> would all exist within the meta property for the data enemy youre already pulling data from, so you'd be able to fetch them using
Code:
$dataEnemies[125].meta.Type
(or meta.Skill / meta.Damage).
just remember that these values are strings by default, so if any jank happens cast them as needed
It's that easy? Thanks!!

Wow, I kinda thought I was asking the impossible. 😛

Thanks for your easy to understand and very quick answer. This helps a lot. If I would have known this, I would never have tried an external database. 🙂
@JohnDoeNews
if you check the MV help file, there was a description of the meta function added there when the function itself was added to the engine.

IIrc it is somewhere in the plugin specifications but I can't tell you.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-notetags.174415/