ID:138371
 
Is that possible? I got to work on a DMP loading routine, and I got down to a part where I've fully extracted each individual definition from each appropriate symbol and stored it in a list, but the list contains values like

"/turf"
"/area"
"/obj/potion/healing"

Instead of what I need,

/turf
/area
/obj/potion/healing

As there is no function that does this automatically, that constitutes my request.

Similarly, this request would also include a type2text() routine...

(Is there any hacky way that would allow me to do that?)

This is absolutely necessary for DMP loading of any kind, I would presume. Or most loading from a text file.
(Is there any hacky way that would allow me to do that?)

Here's a little code snippet. Though it prints "sorry," it also creates a new object just fine. Hope it helps!

verb/GM_test_type()
var/myType = /mob/player/GM
var/myString = "/mob/player/GM"
if(myType == myString) usr << "It works!"
else usr << "Sorry."

var/myThingy = new myString()
var/turf/T
for(T in view(usr, 1))
if(myThingy:Move(T)) break