Has anyone tried 'mixing and matching' XML data?

Joined
Jul 21, 2003
Messages
7,819
Location
Adelaide, South Australia
This comes from the discussion of the 'Great General Mod'-and the fact that a Great General, attached to a city, can't reduce the build times of units alone. What I considered was taking the reduced military build times for Police state and pasting it into the CivSpecialistsinfo.xml file, and doing the same with either barracks or vassalage. The question is-will the Civ4config file actually recognise such a change? I would be interested to hear the reports of those who have tried such mixing and matching.

Yours,
Aussie_Lurker.
 
Aussie_Lurker said:
This comes from the discussion of the 'Great General Mod'-and the fact that a Great General, attached to a city, can't reduce the build times of units alone. What I considered was taking the reduced military build times for Police state and pasting it into the CivSpecialistsinfo.xml file, and doing the same with either barracks or vassalage. The question is-will the Civ4config file actually recognise such a change? I would be interested to hear the reports of those who have tried such mixing and matching.

Yours,
Aussie_Lurker.

No, the Schema defines what is and isn't allowable for each object type. Cutting data from one object to another wouldn't work. You could modify the schema to allow those fields but they wouldn't do anything because the code wouldn't know to look for them.

You may want to set the general to be able to build a building that provides the bonus. Interrupt the build event to spawn the building and a new "working general" unit that has 0 movement and does nothing but has the ability to build a cleanup building that removes itself and the production building and spawns back the origional general.

Get ready for a little scripting if you want to do such a thing but its not TO difficult.
 
Back
Top Bottom