1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Help quicky - Modding a social policy

Discussion in 'Civ5 - Creation & Customization' started by Alexander666, Dec 1, 2012.

  1. Alexander666

    Alexander666 Chieftain

    Joined:
    Nov 29, 2012
    Messages:
    24
    I am working on a new Civ mod, and am stuck at changing a social policy slightly (as part of the leaders trait).

    All I need is for the Honor->Disciplin bonus to be altered from 15% to 30%.

    Anyone can provide the <update> codes for the change and the GameText, and I would be most grateful :king:
     
  2. kaspergm

    kaspergm Deity

    Joined:
    Aug 19, 2012
    Messages:
    4,888
    Try this:

    Code:
    <GameData>
    	<UnitPromotions>
    		<Update>
    			<Set AdjacentMod="30"/>
    			<Where Type="PROMOTION_ADJACENT_BONUS"/>
    		</Update>
    	</UnitPromotions>
    	<Language_en_US>
    		<Update>
    			<Where Tag="TXT_KEY_POLICY_DISCIPLINE_HELP"/>
    			<Set Text="[COLOR_POSITIVE_TEXT]Discipline[ENDCOLOR][NEWLINE]+30% [ICON_STRENGTH] combat strength for melee Units which have another military Unit in an adjacent tile."/>
    		</Update>
    	</Language_en_US>
    </GameData>
     
  3. Alexander666

    Alexander666 Chieftain

    Joined:
    Nov 29, 2012
    Messages:
    24
    Thank you very much Kaspergm!

    It works as intended :king:
     
  4. kaspergm

    kaspergm Deity

    Joined:
    Aug 19, 2012
    Messages:
    4,888
    Great, glad I for once could help someone.
     
  5. Alexander666

    Alexander666 Chieftain

    Joined:
    Nov 29, 2012
    Messages:
    24
    A final touch could be granting a free social policy if completing the Honor tree.

    Do you (or anyone) have insight in codes for that as well?

    That would be baws.

    :king:
     
  6. kaspergm

    kaspergm Deity

    Joined:
    Aug 19, 2012
    Messages:
    4,888
    The tag you want to add is this:

    <NumFreePolicies>1</NumFreePolicies>

    Let me take a sec to write the update code.
     
  7. kaspergm

    kaspergm Deity

    Joined:
    Aug 19, 2012
    Messages:
    4,888
    Try this:

    Code:
    <GameData>
    	<Policies>
    		<Row>
    		<Type>POLICY_HONOR_FINISHER</Type>
    		<NumFreePolicies>1</NumFreePolicies>
    		</Row>
    	</Policies>
    	<Language_en_US>
    		<Update>
    			<Where Tag="TXT_KEY_POLICY_HONOR_HELP"/>
    			<Set Text="[COLOR_POSITIVE_TEXT]Honor[ENDCOLOR] improves the effectiveness of one's army in a variety of ways.[NEWLINE][NEWLINE]Adopting Honor gives a +33% combat bonus VS Barbarians, and notifications will be provided when new Barbarian Encampments spawn in revealed territory. Gain [ICON_CULTURE] Culture for the empire from each barbarian killed.[NEWLINE][NEWLINE]Adopting all policies in the Honor tree will grant a free policy and [ICON_GOLD] Gold for each enemy unit killed."/>
    		</Update>
    	</Language_en_US>
    </GameData>
     
  8. Alexander666

    Alexander666 Chieftain

    Joined:
    Nov 29, 2012
    Messages:
    24
    Hey thanks a bunch, buddy!

    Had to switch in this bit: <Where Tag="TXT_KEY_POLICY_BRANCH_HONOR_HELP"/>
    - to make the text appear ingame.

    I'd like to credit you in the mod info if that's ok with you (if so, which name you want in there)?
     
  9. kaspergm

    kaspergm Deity

    Joined:
    Aug 19, 2012
    Messages:
    4,888
    Oh yeah, good catch on that policy branch thing, I guess I was a bit fast on my copy/paste.

    If you want to mention me, you can just put my forum name here. :)
     

Share This Page