ID:647168
 
(See the best response by DarkCampainger.)
Is there a way to make a switch input but instead of going:
in list("Blah","BlahBlah")

go
in list(for(var/obj/deck/A in usr)

I want to make it so that I can check the users inventory for all types of that obj and put it into a input. I have tried this:

mob/verb/Duel(var/obj/decks/A in usr)

but it also shows the other objects in there.

There is a way I know, but I am not sure how to do it.
Best response
What you need to do is create a list and use the for() loop to fill it, then pass that list to input().
In response to DarkCampainger
Sorry there buddy, just gotta clearify your answer. Define a list before calling the for() proc, in which you check src.contents for objs, then you form a input() in which you call with the list.

So, it'd be input() in listname instead of input() in list().