{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreifh3n5ahqc3t2zu542uqdjkr7klb4bwccz5tgahsyn33fcqg7756y",
    "uri": "at://did:plc:4n6wgsqsqm6q2hjncgwmreey/app.bsky.feed.post/3mkupzp6saxp2"
  },
  "coverImage": {
    "$type": "blob",
    "ref": {
      "$link": "bafkreidisg2duo357uzfa4cjmti4wp5nclq7spynjqn2p4vcq6fedkemc4"
    },
    "mimeType": "image/png",
    "size": 323596
  },
  "path": "/post/49740611",
  "publishedAt": "2026-05-02T11:18:52.000Z",
  "site": "https://programming.dev",
  "tags": [
    "Godot",
    "Fizz",
    "3 comments",
    "docs.godotengine.org/en/3.2/…/class_script.html#c…"
  ],
  "textContent": "submitted by Fizz to godot\n5 points | 3 comments\n\nEdit: ah i was reading an old doc because the reddit comment I saw was 6 years old. The property is get_property_list()\n\nI have a script that is a global it contains a bunch of dictionaries that describe items. I need a way to get a list of the different types.\n\nSearching for solutions I found docs.godotengine.org/en/3.2/…/class_script.html#c…\n\nbut I cant seem to get it working. Godot says “Function “get_script_property_list()” not found in base self”\n\nExample of the what im trying to get a list of\n\n\n    var tile_dict_grass = {\n    \t\"name\": \"grass\",\n    \t\"source\": 1,\n    \t\"atlas\": Vector2i(1,0),\n    \t\"move_speed\": 0.80,\n    \t\"path_cost\": 2,\n    \t\"fertility\": 1,\n    \t\"cleanliness\": 1.5,\n    \t\"flammability\": 0.60,\n    \t\"build_categories\": \"all\",\n    \t\"solid\": false\n    }\n    var tile_dict_rich_soil = {\n    \t\"name\": \"rich soil\",\n    \t\"source\": 1,\n    \t\"atlas\": Vector2i(1,0),\n    \t\"move_speed\": 0.80,\n    \t\"path_cost\": 2,\n    \t\"fertility\": 1.4,\n    \t\"cleanliness\": -1.0,\n    \t\"flammability\": 0.0,\n    \t\"build_categories\": \"all\",\n    \t\"solid\": false\n    }\n\n\nHow im trying to get it.\n\n\n    func get_tile_dict():\n    \tvar property_list = self.get_script_property_list()\n    \tvar tile_list = []\n    \tfor attr in dir(self):\n    \t\tif attr.startswith('tile_dict'):\n    \t\t\tvalue = getattr(self, attr)\n    \t\t\ttile_list.append(value)\n    \treturn tile_list\n",
  "title": "How can I get variables from a gd script? - Solved"
}