Disabling Buildings

tachidi

Chieftain
Joined
Apr 1, 2010
Messages
23
I want to disable building using some conditions. I guess, that i should use city:CanConstruct, but i don't know how to use it correctly. Can anybody help with it?
 
You actually want GameEvents.cityCanConstruct - city:CanConstruct tells you if it can or not, rather than setting conditions. There's info on that one on the official wiki, though no-one's put the info on the newer GameEvents that were added in the last patch yet. Those are all listed in the patch notes.
 
Yeah, i've installed patch and tryied to set conditions. But there are two problems:
1) it doesn't wark at all
or
2) all buildings disappeared

I can't understand what i'm doing wrong with it, even with wiki and forum parsing - are there any real working examples to see?
 
are there any real working examples to see?

There's a working example in TurnsRemaining.lua file in the Viking DLC 1066 Scenario
 
Back
Top Bottom