Hi!
I'm working out a concept for a new civ with a somewhat nomadic UA in mind which would need LUA coding and I'm not very familiar with it so hence this thread.
The basic idea is that when a city of said civ grows, instead of adding a pop a unit is born in that city.
How would I do something like that?
The unit would be a specific unit, I'm planning to base the civ's UA on whoward's Units - Population mod (which adds a Population unit that spawns when cities are razed and have the opportunity to either join a city as a pop or settle a new city). With this civ, they would gain one of those when a city grows and the player gets to choose whether to add it to the city or use it to build a new one.
I guess the way this would go about is that when the city grows, the game detects the growth, spawn a Population unit in said city, and decreases the city's population back one step. But as I said I'm not very familiar with LUA.
I'm working out a concept for a new civ with a somewhat nomadic UA in mind which would need LUA coding and I'm not very familiar with it so hence this thread.
The basic idea is that when a city of said civ grows, instead of adding a pop a unit is born in that city.
How would I do something like that?
The unit would be a specific unit, I'm planning to base the civ's UA on whoward's Units - Population mod (which adds a Population unit that spawns when cities are razed and have the opportunity to either join a city as a pop or settle a new city). With this civ, they would gain one of those when a city grows and the player gets to choose whether to add it to the city or use it to build a new one.
I guess the way this would go about is that when the city grows, the game detects the growth, spawn a Population unit in said city, and decreases the city's population back one step. But as I said I'm not very familiar with LUA.