MV Update a variable when the skill help window is called

my skills have a variable in the description corresponding to the quantity of an armor that is consumed each time the skill is used.

I'm not sure wherein the code the skill description is called, but i would like to put in some code that looks like this:
$gameVariables._data[96] = $gameParty._armors[action.item().id];
But i don't know where to look.
I would think it would depend on which skill help window you're referring to. In battle, access to the window resides in the rpg_scenes.js file. If you search for Scene_Battle.prototype.createHelpWindow, you should be able to find the reference (basically this._helpWindow throughout that scene). However, it does look like it is being used for a variety of other things too, accomplishing what you want may be a bit tough.

If you are referring to a non-battle scenario (probably not valid considering you want the action item's id) then you'll find it still in the same file, but in Scene_Menu most likely instead (also identified as the help window).
I would think it would depend on which skill help window you're referring to. In battle, access to the window resides in the rpg_scenes.js file. If you search for Scene_Battle.prototype.createHelpWindow, you should be able to find the reference (basically this._helpWindow throughout that scene). However, it does look like it is being used for a variety of other things too, accomplishing what you want may be a bit tough.

If you are referring to a non-battle scenario (probably not valid considering you want the action item's id) then you'll find it still in the same file, but in Scene_Menu most likely instead (also identified as the help window).
I'll keep looking around in the code

Original thread: https://forums.rpgmakerweb.com/threads/update-a-variable-when-the-skill-help-window-is-called.134974/