johnnyward88
Chieftain
Hi,
I have successfully create a mod to update the Explorer Combat (I didn't see the one in workshop until afterwards!)
My question is this, how do I structure the XML so that I can update more than one unit OR more than one element of a unit:
e.g.
I want to set Marine combat and Explorer combat to larger amounts so I have:
and I want to add in the soldier, so do I add it within the Units tag:
OR a new Units Tag:
Or is there another way as I can't get either to work!
Likewise where would I put the <Set><Where> for a second element of the same unit e.g. changing cost and combat of a single unit?
Thanks in advance for the assistance
I have successfully create a mod to update the Explorer Combat (I didn't see the one in workshop until afterwards!)
My question is this, how do I structure the XML so that I can update more than one unit OR more than one element of a unit:
e.g.
I want to set Marine combat and Explorer combat to larger amounts so I have:
Code:
<GameData>
<Units>
<Update>
<Set Combat="10"/>
<Where Type="UNIT_EXPLORER"/>
</Update>
</Units>
</GameData>
and I want to add in the soldier, so do I add it within the Units tag:
Code:
<GameData>
<Units>
<Update>
<Set Combat="10"/>
<Where Type="UNIT_EXPLORER"/>
</Update>
<Update>
<Set Combat="20"/>
<Where Type="UNIT_MARINE"/>
</Update>
</Units>
</GameData>
Code:
<GameData>
<Units>
<Update>
<Set Combat="10"/>
<Where Type="UNIT_EXPLORER"/>
</Update>
</Units>
<Units>
<Update>
<Set Combat="20"/>
<Where Type="UNIT_MARINE"/>
</Update>
</Units>
</GameData>
Likewise where would I put the <Set><Where> for a second element of the same unit e.g. changing cost and combat of a single unit?
Thanks in advance for the assistance
