flyinghorse301
Chieftain
- Joined
- Nov 26, 2011
- Messages
- 24
Hi everyone, can someone show me how to do this in my mod:
1. I want to have a new yield type, eg "morale"
2. I want my building to give +1 yield of that "morale".,eg "my tower"
I tried this but not successful.
1st I create a new yield:
<Yields>
<Row>
<Type>YIELD_MORALE</Type>
<Description>TXT_KEY_YIELD_MORALE</Description>
<IconString>[ICON_RES_GEMS]</IconString>
<MinCity>2</MinCity>
<GoldenAgeYield>0</GoldenAgeYield>
<GoldenAgeYieldThreshold>0</GoldenAgeYieldThreshold>
<AIWeightPercent>100</AIWeightPercent>
</Row>
</Yields>
Then I add this to my building:
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_TOWER</BuildingType>
<YieldType>YIELD_MORALE</YieldType>
<Yield>1</Yield>
</Row>
</Building_YieldChanges>
But nothing happen. My tower does not give that Morale, I cannot see it when I put my cursor over the tower icon...If I change it to
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_TOWER</BuildingType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>1</Yield>
</Row>
</Building_YieldChanges>
then my tower will gives me 1 food. So it seems that the game does not recognize my new yield type...but I dont know what is wrong.
1. I want to have a new yield type, eg "morale"
2. I want my building to give +1 yield of that "morale".,eg "my tower"
I tried this but not successful.
1st I create a new yield:
<Yields>
<Row>
<Type>YIELD_MORALE</Type>
<Description>TXT_KEY_YIELD_MORALE</Description>
<IconString>[ICON_RES_GEMS]</IconString>
<MinCity>2</MinCity>
<GoldenAgeYield>0</GoldenAgeYield>
<GoldenAgeYieldThreshold>0</GoldenAgeYieldThreshold>
<AIWeightPercent>100</AIWeightPercent>
</Row>
</Yields>
Then I add this to my building:
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_TOWER</BuildingType>
<YieldType>YIELD_MORALE</YieldType>
<Yield>1</Yield>
</Row>
</Building_YieldChanges>
But nothing happen. My tower does not give that Morale, I cannot see it when I put my cursor over the tower icon...If I change it to
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_TOWER</BuildingType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>1</Yield>
</Row>
</Building_YieldChanges>
then my tower will gives me 1 food. So it seems that the game does not recognize my new yield type...but I dont know what is wrong.