Hi,
For a civ trait, I'd like to have some turns of WLTKD when a city is founded.
I've tried this
GameEvents.PlayerCityFounded.Add(function(iPlayer, x, y)
if Players[iPlayer]:GetCivilizationType() == GameInfoTypes.YOUR_CIVILIZATION then
local iCity = Map.GetPlot(x,y):GetPlotCity()
iCity:ChangeWeLoveTheKingDayCounter(1)
end
end)
but nothing happened
Can someone help me?
For a civ trait, I'd like to have some turns of WLTKD when a city is founded.
I've tried this
GameEvents.PlayerCityFounded.Add(function(iPlayer, x, y)
if Players[iPlayer]:GetCivilizationType() == GameInfoTypes.YOUR_CIVILIZATION then
local iCity = Map.GetPlot(x,y):GetPlotCity()
iCity:ChangeWeLoveTheKingDayCounter(1)
end
end)
but nothing happened

Can someone help me?