Starrynite120
Prince
- Joined
- Jul 15, 2015
- Messages
- 472
I'm new to Lua, and I understand the logic behind it and can understand a program when looking at it, but something I'm having trouble with is knowing what terms/commands to use, and how to refer to the correct thing.
Basically what I'm asking is how do I command the computer to count something (I'm guessing by a loop?), how do I refer to researched techs as opposed to unresearched techs (I'm trying to count how many techs you have researched), and how would I refer to what tier of the gird a tech is on? I understand in XML how to set a tech on a specific grid, but I'm having trouble figuring out how to get an lua code to understand what tier of the tech web a tech is on. Any help is greatly appreciated!
Basically what I'm asking is how do I command the computer to count something (I'm guessing by a loop?), how do I refer to researched techs as opposed to unresearched techs (I'm trying to count how many techs you have researched), and how would I refer to what tier of the gird a tech is on? I understand in XML how to set a tech on a specific grid, but I'm having trouble figuring out how to get an lua code to understand what tier of the tech web a tech is on. Any help is greatly appreciated!