The way the help with the inventory command worked was tedious. I made some alterations to make it more simple and easy to find how to get the help you would need.
I never coded in this lua stuff. But it does work.
/inventory <null> "Usage: /inventory help , upgrades? , turrets? , materials?, rarity?"
/inventory help "Modifies inventory of a player. Usage:\n/inventory turret <type> [rarity] [material] [tech] [amount]\n/inventory upgrade <script> [rarity] [amount]\n/inventory available <turrets|upgrades|materials|rarities>"
and..
/inventory upgrades? as well as the rest print out the available lists.
having to type out /inventory available , over and over was inefficient.
also by adding in the null agr it rendered most if not all of your invalid inputs obsolete.
inventory.lua