I'm really naive but interested in lua modding. I just want to know some basic stuff:
If I want it to print "I'm here" each time when a new city is created, can I just use such a
code:
function iamhere()
print("I'm here")
end
Events.SerialEventCityCreated.Add(iamhere)
and save this code as iamhere.lua, put this file in a folder called "testingmod", which is a subfolder in Sid Meier's Civilization5->MODS?
I tried this, but it didn't work at all, even when I checked this mod in the game. Where am I wrong?
I really really appreciate your help!
If I want it to print "I'm here" each time when a new city is created, can I just use such a
code:
function iamhere()
print("I'm here")
end
Events.SerialEventCityCreated.Add(iamhere)
and save this code as iamhere.lua, put this file in a folder called "testingmod", which is a subfolder in Sid Meier's Civilization5->MODS?
I tried this, but it didn't work at all, even when I checked this mod in the game. Where am I wrong?
I really really appreciate your help!