To reproduce: Put ammo in your ammo slots and use:
Code: Select all
/c game.local_player.print(game.local_player.get_item_count("piercing-shotgun-shell"))
/c game.local_player.print(game.local_player.remove_item({name="piercing-shotgun-shell",count=100}))