How would you make this trait? The idea is that the civilization receives a specific unit free each x turn (x = 10 to begin with atleast)
I'm sure you would need some .lua scripts, but I don't know how to code in those yet, and I havn't been able to find a civ 5 oriented guide. I've done a course in java, at the university so I understand most of the commands, but I don't know how to make my own.
Could you make a integer that would counts up once each time you end your turn, and have a while loop that activates whenever this counter reaches 10, providing the free unit? If so, how would you make it in .lua?
Edit: I just noticed that in the "Civ5Traits" folder is a column:
<Column name="FreeUnit" type="text" reference="UnitClasses(Type)" default="NULL"/>
I havn't been able to find anything using that, for the example, but maybe I could? Or is it just the command for the free starting settler, etc?
I'm sure you would need some .lua scripts, but I don't know how to code in those yet, and I havn't been able to find a civ 5 oriented guide. I've done a course in java, at the university so I understand most of the commands, but I don't know how to make my own.
Could you make a integer that would counts up once each time you end your turn, and have a while loop that activates whenever this counter reaches 10, providing the free unit? If so, how would you make it in .lua?
Edit: I just noticed that in the "Civ5Traits" folder is a column:
<Column name="FreeUnit" type="text" reference="UnitClasses(Type)" default="NULL"/>
I havn't been able to find anything using that, for the example, but maybe I could? Or is it just the command for the free starting settler, etc?