ThorHammerz
zzz
- Joined
- Jul 31, 2014
- Messages
- 836
Hey all, probably a really basic question, but how would I go about calling the game database from a base LUA script (such as AssignStartingPlots.lua)?
For example:
Since Firaxis hard-coded the values to "take into account the various terrain yields in determining fertility....." crap in order to "determine how much value to assign each starting region", I would like to access the table "Terrain_Yields" (as well as others) to retrieve the yields for say, plains, grass, tundra, etc. to feed into the existing algorithm.
What would be the general syntax for doing so (calling a specific element from any game database table - i.e. not using a loop to iterate through everything)?
For example:
Since Firaxis hard-coded the values to "take into account the various terrain yields in determining fertility....." crap in order to "determine how much value to assign each starting region", I would like to access the table "Terrain_Yields" (as well as others) to retrieve the yields for say, plains, grass, tundra, etc. to feed into the existing algorithm.
What would be the general syntax for doing so (calling a specific element from any game database table - i.e. not using a loop to iterate through everything)?