Policy Update Question

Gazebo

Lord of the Community Patch
Supporter
Joined
Sep 26, 2010
Messages
18,400
Location
Little Rock
Hey all-

Does this particular line of code seem correct for updating the Philanthropy policy?

Code:
<GameData>
	<Policies>
		<Update>
			<Set MinorGoldFriendshipMod="0"/>
			<Where PolicyType="POLICY_PHILANTHROPY"/>
		</Update>
		<Update>
			<Set ProductionModifier="25"/>
			<Where PolicyType="POLICY_PHILANTHROPY" UnitCombatType="UNITCOMBAT_RECON"/>
		</Update>
		<Update>
			<Where Tag="TXT_KEY_POLICY_PHILANTHROPY_HELP"/>
			<Set Text="Receive a 25% [ICON_PRODUCTION] Production boost to Messengers, Diplomats and Ambassadors."/>
		</Update>
	</Policies>
</GameData>
 
Almost, except the last one.

You are trying to directly update the english tag/text, but there is no such reference in the Policies table.

Instead put

<Where Type="POLICY_PHILANTHOPY"/>
<Set Help="all your info here"/>

or you could open up another table, i.e. the english language table and update the tag/text there

Edit: actually I think you should combine the first and the last ones the way you have the 2nd one and it would work...

I'm not certain the 2nd one would work, try removing it or just turning it into a note by surrounding it with note tags <!-- --> and test it out... iirc there's no UnitCombatType tag in the the policies table
 
Back
Top Bottom