i was trying to make an inventory with lists recently like this. you pick up an ammo box it needs to try to find if anything in the list is
named Ammo Box and and add 100 rounds for a certain kind of bullet like..a 50.caliber
round BUT it needs to read it when i press a key like 9 or m. please help!

Offline
I don't think you need a value in your list called ammo box.
Just have a list called ammo and each value is the number of bullets you have for a particular weapon.
Lets say that you want to only use a weapon if you have ammo for that weapon. Lets also say that this weapon is waepon number 9 and the ammount of ammo available is in spot 9 in the ammo list.
if (value 9 in "ammo" >0)
//switch to weapon 9
Offline