- Joined
- Jan 24, 2011
- Messages
- 4,898
Can someone help me with this?
if city.id == cityID["Condata"] and conqueror.id == romanTribe.id then
justOnce("ThinningOfForests", function ()
civ.ui.text(func.splitlines(thinningForestsText))
state.condataTaken=1
--jp adding this in to see if this can work
for __,location in ipairs(thinningForestsLocations) do
civ.getTile(location[1], location[2], location[3]).terrainType = thinningForestsType
civlua.createUnit(gallicTownfolk, defender, {{48,46,0},{47,47,0}}, {count=1, randomize=false, veteran=false})
end) --This is line 1763 for people helping me
end
I don't know how many "ends" I'm supposed to put or where they are supposed to go but this is not working and I'm getting an error that "D:\Test of Time TOTpp14\Scenario\Caesar\events.lua:1763: unexpected symbol near ')' "
I do have what I believe is also necessary to build this:
local thinningForestsText = "The Romans sack Condata! Some Gallic Townfolk flee into the countryside, but others throw their lot in with Rome, showing us the way through the nearby forests!!"
local thinningForestsTerrainType=3
local thinningForestsLocations={
{49,47,0}
,{53,47,0}
,{53,55,0}
,{49,55,0}
}
Any help would be greatly appreciated!!!
if city.id == cityID["Condata"] and conqueror.id == romanTribe.id then
justOnce("ThinningOfForests", function ()
civ.ui.text(func.splitlines(thinningForestsText))
state.condataTaken=1
--jp adding this in to see if this can work
for __,location in ipairs(thinningForestsLocations) do
civ.getTile(location[1], location[2], location[3]).terrainType = thinningForestsType
civlua.createUnit(gallicTownfolk, defender, {{48,46,0},{47,47,0}}, {count=1, randomize=false, veteran=false})
end) --This is line 1763 for people helping me
end
I don't know how many "ends" I'm supposed to put or where they are supposed to go but this is not working and I'm getting an error that "D:\Test of Time TOTpp14\Scenario\Caesar\events.lua:1763: unexpected symbol near ')' "
I do have what I believe is also necessary to build this:
local thinningForestsText = "The Romans sack Condata! Some Gallic Townfolk flee into the countryside, but others throw their lot in with Rome, showing us the way through the nearby forests!!"
local thinningForestsTerrainType=3
local thinningForestsLocations={
{49,47,0}
,{53,47,0}
,{53,55,0}
,{49,55,0}
}
Any help would be greatly appreciated!!!