espionage and wonders?

davidlallen

Deity
Joined
Apr 28, 2008
Messages
4,743
Location
California
Spies can execute the "sabotage building" order once you have enough espionage points. You get a picklist of the buildings in the city. But, it seems that wonders are not on the list. I have created a specific national wonder for my mod, "Capitol", and I want players to be able to destroy it with spies. The other buildings in the city show up in the destroyable list, but not "Capitol". I can only assume this is because wonders are considered too powerful to destroy.

Is there an XML flag, or a python hook, I could use to enable spies to destroy certain wonders? Or, all wonders?
 
Easier I think, would be to create a BuildingClass for the wonder you want, but not make it a wonder, just a building that can only be built once per civ. There's a tag right in the BuildingClassInfos.XML that will let you do that.

once it's a building, you should be able to spy it.
 
I don't quite understand. There is nothing that specifically marks a building as a wonder. In the pedia, it seems that a building will show up in the "wonders" tab if it has either a iMaxGlobalInstances or iMaxPlayerInstances which is not -1. There is no separate flag.

As far as I can tell, wonders don't show up in the sabotage building list.

I conclude that there is no way to sabotage a building which has a Max...Instances count. But, that's what I want to do. Have I misunderstood this part of the system?
 
Back
Top Bottom