martijnaikema
Warlord
- Joined
- Oct 30, 2010
- Messages
- 111
Can somebody help me with displaying all possible featuretypes (number and name) in firetuner through lua?
On the wiki I read:
These lists are available in ModBuddy/Help/Civ5LuaAPI.html.
Alternatively, object metatable can be obtained by calling getmetatable on non-nil object pointer. Then it is possible to iterate over all values stored in __index variable.
Example:
local plot = Map.GetPlot(0, 0)
print("Attributes:")
for k, v in pairs(getmetatable(plot).__index) do print(k) end
print("End attributes.");
Is this also possible for:
Lua Game Objects/FeatureTypes
On the wiki I read:
Spoiler :
These lists are available in ModBuddy/Help/Civ5LuaAPI.html.
Alternatively, object metatable can be obtained by calling getmetatable on non-nil object pointer. Then it is possible to iterate over all values stored in __index variable.
Example:
local plot = Map.GetPlot(0, 0)
print("Attributes:")
for k, v in pairs(getmetatable(plot).__index) do print(k) end
print("End attributes.");
Is this also possible for:
Lua Game Objects/FeatureTypes