How do I make a common event read an item's notetags?

I'm trying to make my game's combat more like D&D. I followed this tutorial to get started, but I'm currently stuck on how to implement the damage side of the process. Ideally, I'd like to be able to put a custom damage formula in the notetags of each weapon like 1 + rand(x) + floor.((a.atk-10/2), but I don't know how to make the common event that assigns the damage roll read these notetags. I'd really appreciate any help you could give me on this.
It will cost you $3.99 US, but I know exactly what you need.
EDIT: Hopefully.
It will cost you $3.99 US, but I know exactly what you need.
EDIT: Hopefully.
Alrighty then. One more thing: Can I make a skill's damage formula become whatever damage formula the equipped weapon has?
Alrighty then. One more thing: Can I make a skill's damage formula become whatever damage formula the equipped weapon has?
Yeah, looks like the plugin has a notetag for that. From the notes Ramza has on the itch page:

The basic attack skill isn't the only skill that can be modified by this plugin. By tagging a skill as a <Weaponskill>, you tell the plugin to sub in the weapon formula in place of the formula for the skill being used. This works the same way as the basic attack skill, and even has some interactions with the skills tags from the dual wield plugin.
I don't know how to make the common event that assigns the damage roll read these notetags.
Even aside from Sword's plugin recommendation, you wouldn't want to do this.

Common events on skills get called after the skill has resolved, so if you tried this method you would see the entire skill happen in combat then afterwards the damage would pop up.
$dataItems[1].meta will give you an object in which to specify a specific tag.
$dataItems[1].note will return everything in the notebox as a string.

Assuming you're using the [Select Item] event command on the field, you can replace "1" in this example (whatever item's Id is suppose to be) with the variable the [Select Item] command stored the ID in.
So, $dataItems[$gameVariables.value(3)].note; if you saved it to Variable 3.

Otherwise, you might be looking to modify the evalDamageFormula function in rmmz_objects.js?
It's a simple matter to replace value, which is evaluated from the item's damage formula, with the items notebox instead.
Although how you chose to designate what items use which method is up to you.
Perhaps a if-else statement that'll use the notebox formula when a tag is present.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-common-event-read-an-items-notetags.156390/