Question relating to building classes

ArneHD

Just a little bit mad
Joined
May 16, 2006
Messages
3,153
Location
Tromsø, Norway
Hi, I'm working on a mod concept that goes something like this: you can build one out of an x numbers of national wonders. Once you have built one of them, you cannot build the others. I have, however, a problem: I can't make two buildings the same building class and still be able to build them both, either one replace the other, or I can't build either. I thought that I might be able to use a sort of special building class, but I do not know a lot about them.

So here is my question: is there an easy way to make to buildings buildable, but mutually exclusive?
 
Off the top of my head, I think the simplest solution would involve modifying either the canConstruct or cannotConstruct python function.
 
zyphyr said:
Off the top of my head, I think the simplest solution would involve modifying either the canConstruct or cannotConstruct python function.

zyphyr is right, CannotConstruct is your friend. An ugly, drunk and violent friend, but a friend none the less.
 
Back
Top Bottom