It's probably in either Python and/or Gamecore.DLL. In fact, the more I think about it... just giving him a button to rush or build something would almost certainly be in the Gamecore.DLL, not in XML.I don't see where in the xml files it allows for the Great General to build the Military Academy. I would like to mod it to allow the Great General to build other buildings.
Any help is appreciated.
Not sure if this is it but... try looking in the Civ4BuildingInfos.xml file inder the building you want him to build for the following:I don't see where in the xml files it allows for the Great General to build the Military Academy. I would like to mod it to allow the Great General to build other buildings.
Any help is appreciated.
Ah, wasn't sure. Figured it was worth a try. Thanks.<GreatPeopleUnitClass> is what type of GPP the building will give you (Thats why it should say "NONE" for mil academy - it does not give GPP)
Refar, is that the same or not as the Great Engineer helping to build something... like if I wanted West Point to be buildable like it already is AND have the option for a Great General to finish it and/or donate points towards its construction (like a great engineer does), is that in XML?
As far as I know (I haven't tried it) those things can only be built by their respective great people simply because they can't be built normally. It's as easy putting a hammer cost on the buildings.That would be interesting to see... I'd like a two-fold approach... you could construct West Point and/or the Pentagon as normal, but a Great General could also build it for you. A Prophet or Great Scientist building is ONLY buildable by the GP, not by normal means.
I guess this is something that should/could be tested in-game.I looked into the files (but did not try it either), and it seems Dryhad is right.
Those special buildings have hammer cost set to -1 Giving them a positive hammer cost will make them buildable and rushable with a GE, or - indipendant from your building queue - to create them from the appropriate Great Person.
<iCost>-1</iCost>
Yes... my question now would be... can you put MULTIPLE buildings in there... like Military Academy, West Point and the Pentagon, or something like that?Wotan is right,
The <Buildings> Tag in the UnitInfos.xml is where you would put the building you want the unit to instantly build (Academy for GS, Military Academy for GG, etc..)
Incidently there is a tag directly below the <Buildings> called <ForceBuildings> which I havent gotten around to test.
I forget the hierarchy of the <Buildings> tag off the top of my head, just do a search for the Academy and it should give you a template.