Change a National building into a Wonder, possible?

Optik

Chieftain
Joined
Mar 24, 2011
Messages
75
Location
France
I want to know if it's possible to change a National building into a Wonder with <BuildingClassOverrides> in order to add a splashart like Wonder, I had no positive results with my tests.

If it's not possible, how can I disable the National building and create a Wonder to remplace it?
 
In BuildingClasses did you replace

<MaxPlayerInstances>1</MaxPlayerInstances>

with

<MaxGlobalInstances>1</MaxGlobalInstances> ?

if you want to replace an existing vanilla building that would look like this :

<BuildingClasses>
<Update>
<Set MaxGlobalInstances="-1"/>
<Where Type="BUILDINGCLASS_YOUR_BUILDING"/>
</Update>
<Row>
<Type>BUILDINGCLASS_YOUR_BUILDING</Type>
<MaxGlobalInstances>1</MaxGlobalInstances>
</Row>
</BuildingClasses>
 
Assuming you want to treat the building like a national wonder (in that other players can build these too) your best bet is to add interface code to check to see if this building is built. Add a new XML tag entirely and check for this XML tag in the interface script to launch the wonder popup.
 
Add a new XML tag entirely and check for this XML tag in the interface script to launch the wonder popup.

You shouldn't need to do that. If the <Buildings> table for this thing has defined a wonder sound file and art file, then just have it do the popup regardless of whether it's a world wonder, national wonder, or just a building that you really want a popup for. No need for new XML, just parse the existing XML a bit better.

I'm actually trying to do that in my own mod, since I'm a big fan of the "national wonder" mechanism as a balancing tool. Actually, I'm trying to add the capability for wonder MOVIES, but that's more of a long-term goal.
 
Back
Top Bottom