Is this correct?

Riker13

King
Joined
Nov 9, 2001
Messages
859
Location
UK
I want to make the HARBOR have 1x GOLD and 1x FOOD on the seatiles but it does not seem to do anything, is the code I have used correct?

<Building_SeaPlotYieldChanges>
<Update>
<Where BuildingType="BUILDING_HARBOR" YieldType="YIELD_FOOD" />
<Set Yield="1" />
</Update>
<Update>
<Where BuildingType="BUILDING_HARBOR" YieldType="YIELD_GOLD" />
<Set Yield="1" />
</Update>
</Building_SeaPlotYieldChanges>

Regards

Riker13 :crazyeye:
 
Instead of an update, add it as if it were a completely new row(because it is).

If you are in the buildings table, you would Update the harbor because it already exists. But since the harbor doesn't already have an entry in the SeaPlotYieldChanges table, you add it in full.
 
Back
Top Bottom