MZ How to take value from enemy note? (Solved)

How do I pull the value from an enemy note? I can do this for equipment, but it doesn't seem to work with enemies.

For example, "I am using "actormaxdam = Number(a.equips()[0].meta.maxdam);" which takes the value out of <maxdam:8> in the weapon's note field, and it works when applying to value.

However, when I use "enemymaxdam = Number(b.meta.maxdam);" it doesn't take the value of <maxdam:12> and it causes all damage to go to 0.
How do I pull the value from an enemy note? I can do this for equipment, but it doesn't seem to work with enemies.

For example, "I am using "actormaxdam = Number(a.equips()[0].meta.maxdam);" which takes the value out of <maxdam:8> in the weapon's note field, and it works when applying to value.

However, when I use "enemymaxdam = Number(b.meta.maxdam);" it doesn't take the value of <maxdam:12> and it causes all damage to go to 0.
b.enemy().meta.maxdam
b.enemy().meta.maxdam

Thank you for the help.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-take-value-from-enemy-note-solved.146499/