ID:174004
 
using this definition:

obj/blah
var/test_var = "testing"

and using this code in a verb:

for(var/O in typesof(/obj/blah))
src << O:vars["test_var"]

won't give me the value of the var. Is there some other way to extract the var without making a new obj for every type and then reading the var from each new obj? Thanks.
Gakumerasara wrote:
won't give me the value of the var. Is there some other way to extract the var without making a new obj for every type and then reading the var from each new obj? Thanks.

Unfortunately there isn't. It's a shame, because I'd love for the initial() proc to be expanded to do just that.
var/value = initial(icon, /obj/tree)

Lummox JR