var/walls[]
var/starterobjs = list("Fancy", "Eerie", "Cool", "Tech")
switch(input("Which Starter Objects would you like?")in starterobjs)
if("Fancy")
walls+= typesof(/Buildables/Walls/Fancy)
for(var/w in walls)
var/path = text2path(w)
var/Buildables/Walls = new path()
bwalls+=Walls
if("Eerie")
walls+= typesof(/Buildables/Walls/Eerie)
for(var/w in walls)
var/path = text2path(w)
var/Buildables/Walls = new path()
bwalls+=Walls
if("Cool")
walls+= typesof(/Buildables/Walls/Cool)
for(var/w in walls)
var/path = text2path(w)
var/Buildables/Walls = new path()
bwalls+=Walls
if("Tech")
walls+= typesof(/Buildables/Walls/Tech)
for(var/w in walls)
var/path = text2path(w)
var/Buildables/Walls = new path()
bwalls+=Walls
Problem description:
Basically, I am working on a building system that uses datums. A newbie gets a set of the datums and is able to chose from certain themes...but I can't seem to get typesof() working with new.
Besides the above code, I have tried maybe 3 alternate solutions, yet none have worked with me. I know it's possible to type a path, then use text2path to define a variable, then use new for that variable (I have another piece of code that perfectly uses the process) so it must be in the way I defined the path list using typesof()...
All of the ones I have done have left me blank (though one way created a list of completely null datums...didn't even have the icon registered. I know cause I even used a specific null icon)
The one above is my most recent attempt, it finally returned something....tangible...in a way...
"Cannot create objects of type null."
so from what I get, there are only nulls in the list. How should I work with typesof() here?