Just started on LUA scripting. I am fairly experienced in programming in general and got the basics of how LUA works from LeeS' pdf guide, but I just am wondering a few things in general.
1. Is there a more updated or comprehensive list of the objects available to us? I've been using the doc by Chimp for SQL stuff so far, but the LUA part seems to be missing arguments/information.
2. Is there a way to access column information when iterating through a table? For example, if I wanted to grant the player yields for every luxury resource, is there a way to do that via a for loop that iterates through GameInfo.Resources, and picks out each one that has the ResourceClassType "RESOURCECLASS_LUXURY"?
Thanks.
1. Is there a more updated or comprehensive list of the objects available to us? I've been using the doc by Chimp for SQL stuff so far, but the LUA part seems to be missing arguments/information.
2. Is there a way to access column information when iterating through a table? For example, if I wanted to grant the player yields for every luxury resource, is there a way to do that via a for loop that iterates through GameInfo.Resources, and picks out each one that has the ResourceClassType "RESOURCECLASS_LUXURY"?
Thanks.