ID:267061
 
I know I'm asking alot of questions, but it has been a long time since I've coded. Ok I have a verb called "Create()"

mob
admin
verb
Create()
var
list/turfs=list(/turf)
usr<<"[turfs]"


There is the verb, but it just displays "/list" how can I change it to display all the possible turfs in the world?
for(var/V in typesof(/turf/)) usr << V
In response to Garthor
Ran into another problem with this. I got it to display now I'm having troble creating a code that you can select the certain turn and place it on the map.
In response to DBZ Kidd
<code> //... var/list/turfList += V var/TURF = input("What turf do you wish to place?","Turf") in turfList new TURF(usr.loc) </code>

Should work, but I can't test it right now.
In response to Garthor
Doesn't work but here is the new code
            Create()
switch(input("Select a type to create","Type")in list("Turf","Mob","Obj"))
if("Turf")
for(var/V in typesof(/turf/))
var/list/turfList=list()
turfList+=V
var/TURF = input("What turf do you wish to place?","Turf") in turfList
new TURF(usr.loc)
In response to DBZ Kidd
Has to be outside the for() loop, except the addition to the list.