Custom Trait help?

ErysLance

Chieftain
Joined
Feb 23, 2013
Messages
8
I'm currently working on adding a custom civilization. I've gotten pretty far, I have all the descriptions, Icons and such in place. I just need to get the Civ's trait working but I've no idea where to start on getting it to work.

What I'm looking for is for the empire to benefit from having tiles with Gold and Silver on them, by giving +1 Science and for tiles with Gems to give +2 Science. (Fit's with the fantasy of the Civ'. I've no idea how balance/Unbalanced it will be).

Will I need to get into LUA to get this working? Any help would be appreciated.

Thanks in advance
 
I'm not sure if you can modify those directly with the trait, but you can make a dummy building that uses <Building_ResourceYieldChanges> for the same effect.

Poland's UB, the Ducal Stable, uses a building to increase production and gold on all horse/sheep/cow tiles. Here's a snippet of that xml code:
Code:
<Building_ResourceYieldChanges>
    <Row>
      <BuildingType>BUILDING_DUCAL_STABLE</BuildingType>
      <ResourceType>RESOURCE_SHEEP</ResourceType>
      <YieldType>YIELD_PRODUCTION</YieldType>
      <Yield>1</Yield>
     </Row>  
  </Building_ResourceYieldChanges>

You could either make a unique building, or set up a dummy building to provide the effect for your civ, swapping out the <ResourceType> for the name of the luxuries you want.
 
I might roll it in as the special effect of their Unique Building, in which case! And perhaps come up with something else as their trait. I've already got ideas brewing that will be much easier to put in.

Thanks for the advice.
 
Back
Top Bottom