Modification to a unique building

justthisguy

Chieftain
Joined
Jul 10, 2014
Messages
2
Hi all,

I've put in more than 2000 hours into Civ V and I feel ready to get my feet wet into this whole modding business. The thing I'm trying to achieve is a modification to the Chinese civilization.
Basicly I want to add in a single scientist slot into the paper maker, and instead of it providing a base two gold per turn give it a one gold per turn maintenance fee.

Thing is, I am totally and horribly new to modding in general, I've never even touched in IDE and the technicalities are lost on me. I've just downloaded the SDK and I'm presented with the ModBuddy, WorldBuilder etc with no clue what they are supposed to do.

Are there any guides available aimed at beginners like me, or are perhaps people willing to help me try and make sense of what to do? A huge thanks in advance!
 
Paper Maker is maintenance free! As far as I know, every single gold-producing (directly or indirectly) in BNW is maintenance free.

Still, in order to change it you will need to start a Mod and put the following on a XML file:
Code:
<GameData>
	<Buildings>
		<Update>
			<Where Type="BUILDING_PAPER_MAKER"/>
			<Set SpecialistType="SPECIALIST_SCIENTIST" SpecialistCount="1"/>
		</Update>
	<Buildings>
</GameData>

I'm pretty terrible with XML Update tags, but I'm quite sure this is right. :D

EDIT: OOps. "G&K".
Ok. I still believe this works anyway. :)

For the gold, this probably will work on G&K if you add on the 'Set' parameter:
Code:
Gold="1" GoldMaintenance="0"
 
This doesn't require Lua, so wrong subforum.

See LeeS's Excellent Treatise on Building XML. It should walk you step by step through why this coding will work:
Code:
<GameData>
	<Buildings>
		<Update>
			<Where Type="BUILDING_PAPER_MAKER"/>
			<Set GoldMaintenance="1" SpecialistType="SPECIALIST_SCIENTIST" SpecialistCount="1"/>
			<!-- I might have spelled maintainence wrong... oh well -->
		</Update>
	</Buildings>-<Building_YieldChanges>
		<Update>
			<Where BuildingType="BUILDING_PAPER_MAKER" YieldType="YIELD_GOLD"/>
			<Set Yield=""/>
		</Update>
	</Building_YieldChanges>
</GameData>
A good general guide for new modders is Kael's Modding Guide.

EDIT: Avast! Semi-beninja'd by bane_!
 
Top Bottom