if("Sell")
var/tmp/itemslist = list()
for(var/mob/Player/obj/item in src.contents)
itemslist+= "[item.name] ([item.value])"
switch(input("What would you like to sell?","Weapons Shop")in list(itemslist))
for(var/mob/Player/obj/selling in src.contents)
if("[selling.name] ([selling.value])")
switch(alert("Would you like to sell your [selling.name] for [selling.value]?","Confirmation","Yes","No"))
if("Yes")
retry
if(selling.equipped)
switch(alert("You have [selling] equipped. Please unequip it.","Warning!","Retry","Cancel")
if("Retry")
goto retry
if("Cancel")
return
else
src.xal+=selling.value
src.contents-=selling
edit: I updated the code
I've gotten this far. My only problem is I need to get this to be recognized as an if statement by the switch statement. I'm brain dead at the moment and apparently can't do that myself o______o... #TeamCodingForDaysStraight lol. I'd greatly appreciate someones help so I can finally add a shop system to my game. :)