DonStamos
Mobster Inc©
I've decided to try to do a different set of lua for another Civ, and I've got it all finished except for one part, where I need to choose a random city for an event. If the player selects one outcome, all cities celebrate WLTKD, but if the player chooses the second, the chosen city enters a few turns of resistance.
How would I write the lua to select a random city?
I know it starts:
local player:Cities{} --to make the table
local numCities = player:GetNumCities() --to determine what my range of integers will be
But I end up going nowhere past this.
How would I write the lua to select a random city?
I know it starts:
local player:Cities{} --to make the table
local numCities = player:GetNumCities() --to determine what my range of integers will be
But I end up going nowhere past this.