Yeah, that. It should look like this:So, are you saying that I should remove the "has" from the code? Is that what I should do?
Code:
#The Turk: Add Castle to indie/barb Damascus:
if iGameTurn == getTurnForYear(1096):
pPlot = gc.getMap().plot(22,43)
if pPlot.isCity():
pCity = pPlot.getPlotCity()
if pCity.getOwner() >= con.iNumPlayers:
pCity.setNumRealBuilding(con.iCastle, 1)
edit: Nice illustration, by the way!
There is no real need for all the frustration though. You could learn all the basics in a matter of hours or days, if you would just commit to it. I'd help you out. In fact, the time already spent on this one task might had been enough. 
I've never seen any code used for "catching" or anything...