What is the LUA and what is its function in the game? I see that it is a scripting language and I have found this which is very helpful. But how can I apply what I learn in those tutorials to Civ V?
When I open up a LUA file in ModBuddy, they look so foreign to me even after having browsed some of the tutorials. What exactly does the LUA do to the game? Is it capable of running real time or detecting events in the game?
If it can, then wow, I need to learn how to use it.
One of the things I would like to accomplish is to add collateral effects to units. For instance, each enemy unit in my territory causes -1 happy or each City Guard unit in a city adding +1 culture.
For that sort of thing to work the game would need to react every time I move a unit, or the AI moves a unit into my territory. Is this achievable with LUA?
Can it be done in a mod at all?
How can I learn to do it?
When I open up a LUA file in ModBuddy, they look so foreign to me even after having browsed some of the tutorials. What exactly does the LUA do to the game? Is it capable of running real time or detecting events in the game?
If it can, then wow, I need to learn how to use it.
One of the things I would like to accomplish is to add collateral effects to units. For instance, each enemy unit in my territory causes -1 happy or each City Guard unit in a city adding +1 culture.
For that sort of thing to work the game would need to react every time I move a unit, or the AI moves a unit into my territory. Is this achievable with LUA?
Can it be done in a mod at all?
How can I learn to do it?