Say if I wanted to pick and item of obj/item
obj/item
test1
name = "hobo"
test2
name = "super hobo"
world
New()
..()
for(var/types in typesof(/obj/item) - /obj/item)
itemlist += types
var/list/itemlist = new()
mob
var/list/test = new()
Login()
..()
var/temp = input("Which?")in list("Items")
switch(temp)
if("Items") test = itemlist
temp = input("Which ?") in namesof(test)
new temp(usr)
So that would instead of using typesof() you could use namesof()
This is the output with the typesof()
/obj/item/test1
//blah
This would be the output with the namesof()
hobo (/obj/item/test1)
super hobo//blah
-ST
Usage:
This might not actually work (it's untested,) but you should get the point. Good luck!
-LoW