Negative Yields?

magikarcher

Chieftain
Joined
Jul 4, 2008
Messages
46
I want to make a building that subtracts science from a city, but gives experience. I have the latter part working, but I can't figure out how to get it to subtract science yield.
 
Although I haven't tested negative yields myself then the way to go about would be the following.

Code:
	<Building_YieldChanges>
		<Row>
			<BuildingType>BUILDING_ofyourchoice</BuildingType>
			<YieldType>YIELD_SCIENCE</YieldType>
			<Yield>-#</Yield>
		</Row>
	</Building_YieldChanges>
 
Thats immediately what I assumed as well, but that doesn't work D:
 
Have you created an entirely new building or are you modifying an existing one? If it already exists then you may have to use <Update><Where><Set> method instead.

Btw, is it the total science that is not being reduced as it should - or is it just not showing the negative number for the building directly?
 
It is a new building. The total science is not changing AND the negative modifier is not showing up in the civilopedia entry.
 
I guess we can conclude that they hardcoded the DLL to ignore negative yield numbers then - so much for the "more moddable than ever before" claim.

/golfclap Firaxis
 
Perhaps, but I am not sure we have enough information yet about the structure of the calls to the DLL - that would be needed to achieve what you want.
 
This is really frustrating. Seems like something really simple they should have done.
 
Back
Top Bottom