Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
function PhantaDistrictEngineer_Project(playerID, cityID, projectID, iUnknown, iX, iY, bCancelled)
local pPlayer = Players[playerID]
if projectID == tProjectID and pPlayer:IsHuman() then
local pCity = pPlayer:GetCities():FindID(cityID)
local pDistricts = pCity:GetDistricts();
for row in GameInfo.Districts() do
if pDistricts:HasDistrict(row.Index) and (row.DistrictType ~= 'DISTRICT_WONDER') and (row.DistrictType ~= 'DISTRICT_CITY_CENTER') and (row.DistrictType ~= 'DISTRICT_SPACEPORT') and (row.DistrictType ~= 'DISTRICT_GOVERNMENT') and (row.DistrictType ~= 'DISTRICT_DIPLOMATIC_QUARTER') then
pDistricts:RemoveDistrict(row.Index);
pPlayer:GetUnits():Create(GameInfo.Units["UNIT_PHANTA_DISTRICT_ENGINEER"].Index, pCity:GetX(), pCity:GetY());
print("District Engineer Given");
end
end
end
end
Syntax Error: ...\steamapps\workshop\content\289070\2956874998\Core\PhantaStatecraftDistrictEngineer_Script.lua:13: then expected near '='
I am running JNR's Districts too. Is it possible to make them both compatible?