mob/verb/Edit_A_List(M as mob in world)
EditList()
proc
EditList(list/M.contents)
var/mob/M
for(M as mob in world)
var/choice = input("What do you want to do? Choose an item to remove it from the list.","List Editor v[version]") in M.contents + list("---","Add to list","Cancel")
if(choice in M.contents)
M.contents -= choice
EditList(M.contents)
if(choice == "Add to list")
var/inpt = input("What kind of value do you want to add to list [M.contents]?") in list("String","Integer","Type")
if(inpt == "String")
M.contents += input("Write what you want to add to this list.") as text
EditList(M.contents)
if(inpt == "Integer")
M.contents += input("Write what you want to add to this list.") as num
EditList(M.contents)
if(inpt == "Type")
M.contents += input("Choose what you want to add to this list.") in typesof(/atom)
EditList(M.contents)
Problem description:
it just brings up a blank list