there are four categories within the inventory, right? items, weapons, armor and key items
i want to know how to grab the number of items in one of those categories, and then put that number into a variable
Why don't you use the editor command "Control Variables"? If you select "Game Data", then click where it says "Map ID", it brings up a new page. The first 3 available choices are "Item", "Weapon" and "Armor". If you select one of them, click on the field to its to select which item, weapon or piece of armour you want to know the number that the party has. Key items are included with the ordinary items.
this is basic I found on the rpg_manager
get by using
let gpI = $gameParty.allItems();
and check every array inside.. if there is key eTypeid.. there is posible weapon, armor etc
if there consumable.. perhaps is item
* can you give more detail on your request