Update a resource on a unit - HELP.

Riker13

King
Joined
Nov 9, 2001
Messages
859
Location
UK
Hi All, if anybody can help on this that would be great.

I want to update a number of Vanilla units to have certain resources instead of nothing and was using the code below but it didnt work and as I have a very small brain I wonder if anybody with a larger brain could help.

<Unit_ResourceQuantityRequirements>
<Update>
<Where UnitType="UNIT_CANNON"/>
<Set ResourceType="RESOURCE_IRON" />
</Update>
</Unit_ResourceQuantityRequirements>

Where have I gone wrong?

Regards

Riker13 :crazyeye:
 
That's easy. You can't use an Update command if there isn't an entry there to begin with. Or you CAN, but it just won't do anything.

Since there's no entry for the Cannon in the resource requirements table, you have to add it as a new <Row> entry.
 
Back
Top Bottom