Need Help with Leader Trait Update and City-State Influence Update

Gazebo

Lord of the Community Patch
Supporter
Joined
Sep 26, 2010
Messages
18,400
Location
Little Rock
Hey all! Here's the XML for what I am trying to do. Can you help me get this to work?

City-State Update:

Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 10/8/2010 3:03:17 PM -->
<GameData>
<Defines>
<Update>
<Set Value="80"/>
<Where Row="MINOR_GOLD_GIFT_LARGE"/>
</Update>
<Update>
<Set Value="40"/>
<Where Row="MINOR_GOLD_GIFT_MEDIUM"/>
</Update>
<Update>
<Set Value="20"/>
<Where Row="MINOR_GOLD_GIFT_SMALL"/>
</Update>
<Update>
<Set Value="40"/>
<Where Row="MINOR_FRIENDSHIP_FROM_TRADE_MISSION"/>
</Update>
</Defines>
</GameData>


and for Sulieman:

Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 10/8/2010 4:22:04 PM -->
<GameData>
<Traits>
<Row>
<Type>TRAIT_SUBLIME_PORTE</Type>
<Description>TXT_KEY_TRAIT_SUBLIME_PORTE</Description>
<ShortDescription>TXT_KEY_TRAIT_SUBLIME_PORTE_SHORT</ShortDescription>
<CityStateFriendshipModifier>20</CityStateFriendshipModifier>
<TradeRouteChange>2</TradeRouteChange>
</Row>
</Traits>
<Language_en_US>
<Row Tag="TXT_KEY_TRAIT_SUBLIME_PORTE">
<Text>Receive a +20% City-State friendship modifier and +2 Gold per Trade Route.</Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_SUBLIME_PORTE_SHORT">
<Text>Sublime Porte</Text>
</Row>
</Language_en_US>
<Leader_Traits>
<Update>
<Where Trait="TRAIT_CONVERTS_SEA_BARBARIANS"/>
<Set="TRAIT_SUBLIME_PORTE"/>
</Update>
</Leader_Traits>
</GameData>


Also, is there any way to give a Civ a free unit at the beginning of the game?

Thanks!
Gazebo
 
First of all, there's a space between SHOR and T in the ShortDescription.

Second it should be
Code:
<Update>
<Where LeaderType="LEADER_SULEIMAN"/>
<Set TraitType="TRAIT_SUBLIME_PORTE"/>
</Update>

For the city states, replace Where "Row" with Where "Name"
 
First of all, there's a space between SHOR and T in the ShortDescription.

Second it should be
Code:
<Update>
<Where LeaderType="LEADER_SULEIMAN"/>
<Set TraitType="TRAIT_SUBLIME_PORTE"/>
</Update>

For the city states, replace Where "Row" with Where "Name"

Thanks! This (plus another error I encountered) have now been overcome and the mod works! Thanks again!
-G
 
Back
Top Bottom