Androrc the Orc
Emperor
After trying around a bit, I've found out that it is possible to affect the conditions to create projects in a city, by accessing GameEvents.CityCanCreate in Lua. This is a very simple example:
This will naturally block PROJECT_NEW_IDEA from being created in a city. Of course though, this is just a demonstrative example, the game event can be accessed to include conditions as desired.
Code:
function CanCreate(iPlayer, iCity, iProject)
local player = Players[iPlayer]
local project = GameInfo.Projects[iProject]
if (iProject == GameInfo.Projects["PROJECT_NEW_IDEA"].ID) then
return false
end
return true --need this for everyone else
end
GameEvents.CityCanCreate.Add(CanCreate)
This will naturally block PROJECT_NEW_IDEA from being created in a city. Of course though, this is just a demonstrative example, the game event can be accessed to include conditions as desired.