mob/verb/insurance()
var/ins = input("Which insurance?") in typesof(/turf/medic) - /turf/medic
usr.insurance = ins
That works great and all, but it says /turf/medic/free, etc int he list. How can I have the turfs name in the list instead of the path/type? So it says Free, Basic, Advanced, etc.
Thanks,
-ST
var/Xlist = list("Cancel")
for(var/turf/medic/M in world)//or usr.contents oview(1) ect
Xlist += M
var/ins = input("Which insurance?") in Xlist - /turf/medic
usr.insurance = ins
i have no clue if that will work just thought through it together but you should be able to do it using something like this