var/list/weplist = list(obj/wep/,"Cancel")
2)How do I make a list containing all of the items in the user's inventory?
var/list/selllist = list(usr.contents)//This doesn't work.
3)How do I make it so it creates a new whatever you bought in your inventory without making a bunch of if statments.
usr.contents += new /obj/wep/
The var for choosing what to buy is defined like this:
var/obj/B = input("Buy which Weapon?","SHOP")in weplist
This is just a small amount of my code but this is all I need help with.
Much appreciated as always.
-Hellsing4-
Use 'typesof' for one type of something.
2)
Add items to the list using a for() statement then access that list when selling.
3)
usr.content += new B