if ("Sell")
var/list/SellMenu = new()
for (var/obj/O in usr)
if (istype(O, /obj/equipment) && O.suffix == null)
SellMenu += O
var/obj/equipment/Item = input("What do you want to sell?", "Sell Item", null) as null|anything in SellMenu
if (Item)
var/SellChoice = alert("I'll give you [Item.SellValue] gold for your [Item].", "Sell Item", "Sell", "Nevermind")
if (SellChoice == "Nevermind")
return
usr.Gold += Item.SellValue
del(Item)
What would I do if I say, had 5 Minnows, and wanted to sell tham all at once rather than one by one? thanks.