Can you attach variables to store random data to weapons/armor?

I'm trying to see if it's possible to create a similar weapon design system to FFTactics advance where you gain xp for a weapon while having it equipped. Then if you get enough XP you master the skill and can use that skill with different weapons. I can't figure out how to create a new actor Weapon XP variable on the items themselves though. Is it possible or would I need to setup a more complicated weapon ID common event to run after each battle?

I'm on MZ.
with a plugin anything is possible.

and for this, you'll need a plugin - the evented solution would only work with a very limited number of weapons before it becomes rather tedious to handle
Ok, thanks for the clarification.
I'm trying to see if it's possible to create a similar weapon design system to FFTactics advance where you gain xp for a weapon while having it equipped. Then if you get enough XP you master the skill and can use that skill with different weapons. I can't figure out how to create a new actor Weapon XP variable on the items themselves though. Is it possible or would I need to setup a more complicated weapon ID common event to run after each battle?

I'm on MZ.
The better option would be to add the xp properties to the actors rather than the weapons, since data objects aren't included in save files, so any changes you made during a gameplay session would be lost on load, unless you specifically made a plugin that saves data items.
The better option would be to add the xp properties to the actors rather than the weapons, since data objects aren't included in save files, so any changes you made during a gameplay session would be lost on load, unless you specifically made a plugin that saves data items.
Indeed. You'd also run into the issue where all instances of the weapon would contain the same data, meaning a second actor who learned a different skill from the same weapon as another would have the same experience with it as the first actor did for the first skill.

Storing the info on the actor is likely your only option, short of using FOSSIL to use YEP_ItemCore in MZ to get independent items to work in MZ. It's be far less work, and far less likely to interfere with other plugins you have already.
It wouldn't be hard to do either: if you store it as an array with the same length as $dataWeapons, you can just store the exp value in the element corresponding to the weapon ID.
Indeed. You'd also run into the issue where all instances of the weapon would contain the same data

This had definitely skipped my mind. I guarantee I would of made this error at least once so thank you!

It wouldn't be hard to do either: if you store it as an array with the same length as $dataWeapons, you can just store the exp value in the element corresponding to the weapon ID.

I am very code-illiterate but I can follow the logic. You gave me enough to go on that I can lookup the syntax to accomplish what I need I think. Thank you for the idea of an Array with weapon id's

Original thread: https://forums.rpgmakerweb.com/threads/can-you-attach-variables-to-store-random-data-to-weapons-armor.145767/