ID:267070
 
I was woundering if turfs can be placed in lists. See I have a list in my statpanel and I was woundering if I was able to put a turf in it.

Not only if I can but how because I dont know how too thanks.
var/list/fart = list()

obj
fart
icon= 'fart.dmi'


sheet += new/obj/fart//<--Just put that in where you want the turf added to list


*Uhg.. well obj atleast havnt tried turf**But should work.**Maybe..*
In response to Jacob
Jacob wrote:
var/list/fart = list()

obj
fart
icon= 'fart.dmi'


sheet += new/obj/fart//<--Just put that in where you want the turf added to list
Objs are alot easyer to add to list. Matter a fact Objs a super simple to add to list. But doing it like above. How would I give the new turf just made a refrence. Like before I had it var/turf/build/B and I would just B.name to change its name. How would I change the name of the above turf type that was just made?
*Uhg.. well obj atleast havnt tried turf**But should work.**Maybe..*
In response to Green Lime
I was confronted with the same prob today. =-P
In response to Jacob
So does any one know how to do this?
In response to Green Lime
var/obj/fart/b = new/obj/fart
b.name = input("What would you like to name this sheet","Sheet") as text


*shrug*
Green Lime wrote:
I was woundering if turfs can be placed in lists. See I have a list in my statpanel and I was woundering if I was able to put a turf in it.

Not only if I can but how because I dont know how too thanks.

I think a turf has to have an x,y,z location so it has to be on a map, but you can always add turf references into a list.