Using common event on Weapons and Armors

Hello, I would like to know if there is a way to use common event for weapon/armor. I use PKD_MapInventory to display my all my inventory on the map andwhen I click on an item I can trigger one common event associate with it.
In my case I use the common event to trigger VE_informationWindow because PKD_MapInventorycan only display the same description window as the database, and I need a lot more of space.
Example if I want to display this:

─────▄████▀█▄
───▄█████████████████▄
─▄█████.▼.▼.▼.▼.▼.▼▼▼▼
▄███████▄.▲.▲▲▲▲▲▲▲▲
████████████████████▀▀

PKD.png
VE_information_window.png


It's impossible to do it with only the database or PKD_MapInventory.

I think my problem can be resolve in different way:
-Associate weapon or armor to common events like for items
-Using the database note tag for directly trigger VE plugin command
-Associate to a weapon/armor a Skill because they can be linked to a common event

I precise but if I use PKD and click on the weapon/armor then the VE information window will pop, it's must work for non-equip weapon/armor, the point is just to display information.
The menu is disable, so it's not possible to use skill menu and honestly I don't know if it's possible to give a skill to a weapon/armor and who can be activate if you not equip it

I think it must exist some pluggin who can help me, so I you know some of them it's will be a great help.🙂
Ok because nobody can help me to solve my problem with the methods above, maybe I have one another alternative:

If we change directly rpg maker files to weapons/armors cannot be equiped and they can used common event (ideally they act as a skill).
Of course if we can prevent to change script call command as $dataWeapons/$dataArmors it's will be good.

In my game I don't have an equipment system so it's not a big deal if it cannot be used anymore.
Do someone know what files manage the database? I'm looking for those in charge of giving traits and effect, I don't think they are in the installation folder as you don't need to have rpg maker installed to run a rpg maker game.
You can try using Waynee95's On Equip Eval and using $gameTemp.reserveCommonEvent(X); where X is the number of your common event with no leading zeros. Another option might be to just do it all with an evented menu.
In looking in rpg_objects.js I found this:
line 1184:
JavaScript:
// Game_Action
//
// The game object class for a battle action.

function Game_Action() {
    this.initialize.apply(this, arguments);
}

Game_Action.EFFECT_RECOVER_HP       = 11;
Game_Action.EFFECT_RECOVER_MP       = 12;
Game_Action.EFFECT_GAIN_TP          = 13;
Game_Action.EFFECT_ADD_STATE        = 21;
Game_Action.EFFECT_REMOVE_STATE     = 22;
Game_Action.EFFECT_ADD_BUFF         = 31;
Game_Action.EFFECT_ADD_DEBUFF       = 32;
Game_Action.EFFECT_REMOVE_BUFF      = 33;
Game_Action.EFFECT_REMOVE_DEBUFF    = 34;
Game_Action.EFFECT_SPECIAL          = 41;
Game_Action.EFFECT_GROW             = 42;
Game_Action.EFFECT_LEARN_SKILL      = 43;
Game_Action.EFFECT_COMMON_EVENT     = 44;
Game_Action.SPECIAL_EFFECT_ESCAPE   = 0;
Game_Action.HITTYPE_CERTAIN         = 0;
Game_Action.HITTYPE_PHYSICAL        = 1;
Game_Action.HITTYPE_MAGICAL         = 2;

line 2086:
JavaScript:
// Game_BattlerBase
//
// The superclass of Game_Battler. It mainly contains parameters calculation.

function Game_BattlerBase() {
    this.initialize.apply(this, arguments);
}

Game_BattlerBase.TRAIT_ELEMENT_RATE   = 11;
Game_BattlerBase.TRAIT_DEBUFF_RATE    = 12;
Game_BattlerBase.TRAIT_STATE_RATE     = 13;
Game_BattlerBase.TRAIT_STATE_RESIST   = 14;
Game_BattlerBase.TRAIT_PARAM          = 21;
Game_BattlerBase.TRAIT_XPARAM         = 22;
Game_BattlerBase.TRAIT_SPARAM         = 23;
Game_BattlerBase.TRAIT_ATTACK_ELEMENT = 31;
Game_BattlerBase.TRAIT_ATTACK_STATE   = 32;
Game_BattlerBase.TRAIT_ATTACK_SPEED   = 33;
Game_BattlerBase.TRAIT_ATTACK_TIMES   = 34;
Game_BattlerBase.TRAIT_STYPE_ADD      = 41;
Game_BattlerBase.TRAIT_STYPE_SEAL     = 42;
Game_BattlerBase.TRAIT_SKILL_ADD      = 43;
Game_BattlerBase.TRAIT_SKILL_SEAL     = 44;
Game_BattlerBase.TRAIT_EQUIP_WTYPE    = 51;
Game_BattlerBase.TRAIT_EQUIP_ATYPE    = 52;
Game_BattlerBase.TRAIT_EQUIP_LOCK     = 53;
Game_BattlerBase.TRAIT_EQUIP_SEAL     = 54;
Game_BattlerBase.TRAIT_SLOT_TYPE      = 55;
Game_BattlerBase.TRAIT_ACTION_PLUS    = 61;
Game_BattlerBase.TRAIT_SPECIAL_FLAG   = 62;
Game_BattlerBase.TRAIT_COLLAPSE_TYPE  = 63;
Game_BattlerBase.TRAIT_PARTY_ABILITY  = 64;
Game_BattlerBase.FLAG_ID_AUTO_BATTLE  = 0;
Game_BattlerBase.FLAG_ID_GUARD        = 1;
Game_BattlerBase.FLAG_ID_SUBSTITUTE   = 2;
Game_BattlerBase.FLAG_ID_PRESERVE_TP  = 3;
Game_BattlerBase.ICON_BUFF_START      = 32;
Game_BattlerBase.ICON_DEBUFF_START    = 48;

It's good but how I can apply an effect as a trait?

Original thread: https://forums.rpgmakerweb.com/threads/using-common-event-on-weapons-and-armors.175749/