Hi! I'm trying to test my FireTuner and i want to start practicing LUA, but so far with no success.
I've tried the code
So the concept behind this is it should print "Lol" if I build my first city. But i see "Lol" nowhere!! Not even on my FireTuner or in lua.log or anywhere.
Am i doing something wrong??
I've tried the code
Code:
function test(iPlayer)
local pPlayer = Players[iPlayer];
if (pPlayer ~= nil) then
if (not pPlayer:IsMinorCiv() and pPlayer:GetNumCities() == 1) then
print("Lol")
end
end
end
GameEvents.PlayerCityFounded.Add(test)
So the concept behind this is it should print "Lol" if I build my first city. But i see "Lol" nowhere!! Not even on my FireTuner or in lua.log or anywhere.
Am i doing something wrong??