false_god123 Posted January 30, 2018 Report Share Posted January 30, 2018 I am looking in simulations/structures/templates/gaul_civic_centre.xml. How would i go about changing how much it costs to make this building and what materials? thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2018 Report Share Posted January 30, 2018 The costs for the civic centers are defined in the parent template from which all CC's inherit their data. Since you wanted to modify only Gaul's Civic center, you need to overwrite the costs inherited from the parent template. To do this add the Cost element below to gaul_civic_centre.xml. Just replace the amounts to what you had in mind. Since the population bonus and build time wont be changed, I have avoided those 2 lines. If you do want to change them, just add the 2 lines above <Resources> found in template_structure_civic_civil_center.xml <Cost> <Resources> <food>0</food> <wood>500</wood> <stone>500</stone> <metal>500</metal> </Resources> </Cost> Quote Link to comment Share on other sites More sharing options...
false_god123 Posted January 30, 2018 Author Report Share Posted January 30, 2018 Ahh right thanks!, where do you find this information? I would have thought opening the default civic centre would have all the lines of code but it doesn't have anything to do with resources Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted February 10, 2018 Report Share Posted February 10, 2018 On 1/30/2018 at 11:06 AM, false_god123 said: where do you find this information? I would have thought opening the default civic centre would have all the lines of code but it doesn't have anything to do with resources As @(-_-) said, templates inherit properties from their parents, in particular structures/gaul_civic_centre is inherited from template_structure_civic_civil_centre (see the 'parent' attribute of 'Entity' element). skirmish/structures/default_civil_centre is a skirmish replacement entity and it inherits most properties from template_structure_civic_civil_centre too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.