For all of you that dont know, here is the code. I guess i had to just step away from it, and also read through the scriptfunctions_client.txt which is terrible to look at.
Well.... ugly but thats gs2
NPC Code:
temp.obj = new TStaticVar("obj");
temp.obj.name1 = "steve";
temp.obj.number = 123;
temp.obj.float1 = 1.23;
temp.obj.strarray = { "asdf", "adsf", "adfdfgsd" };
temp.obj.numarray = {1,2,3};
temp.obj.botharray = {1,2,"asdfdsf"};
temp.obj.obj1 = new TStaticVar("sfg");
temp.obj.obj1.ha = "yea";
temp.obj.obj1.paws = true;
temp.list = temp.obj.getdynamicvarnames();
for ( temp.item : temp.list ){
echo(temp.obj.(@temp.item).type());
echo (temp.obj.(@temp.item));
}