XML/Unit
<?xml version="1.0" standalone="no" ?>
- <unit>
- <parameters>
- <size value="#" /> How man units per side a building uses
- <height value="#" /> The height of a unit
- <max-hp value="###" regeneration="#"/> Maximum hit points and rate of regeneration
- <max-ep value="###" regeneration="#"/> Maximum energy points and rate of regeneration
- <armor value="#" /> ??
- <armor-type value="wood"/> Type of armor - some weapons are more effective against some armor types; Editable in the tech_name.xml file
- <sight value="#" /> Range of sight to react to other units
- How quicky the unit will react to enemy units (?)
- <multi-selection value="false" /> (?)
- <cellmap value="true"> For Buildings, which Cells in a building a unit can pass through
- <row value="1011"/>
- <row value="1011"/>
- <row value="0000"/>
- <row value="1011"/>
- </cellmap>
- <levels/> Levels automatically improve Hit points, Energy Points, and Armor by 50%, as well as sight by 20%.
- <level name="level_name" kills="###"/> level_name is the designation, kills denotes how many enemies must be destroyed to achieve it
- </levels>
- <fields>Where is it considered to be for purposes of being attacked; land weapons can attack land, etcetera
- <field value="land" />
- <field value="air" />
- </fields>
- <properties>
- <property value="burnable"/> Can a building be burned down (?)
- </properties>
- <light enabled="false" />
- <unit-requirements> Units required to be in use before creating
- <unit name="unit_name" />
- </unit-requirements>
- <upgrade-requirements> Upgrades required to be in use before creating
- <upgrade name="upgrade_name"/>
- </upgrade-requirements>
- <resource-requirements> Resources required to be in inventory before creating
- <resource name="resource_name" amount="###" />
- </resource-requirements>
- <resources-stored> Resource that the unit can store for inventory purposes
- <resource name="resource_name" amount="###" />
- </resources-stored>
- <image path="images/aerodrome.bmp"/> Path to Image Icon
- <image-cancel path="../../../../common/tech_cancel.bmp"/> Path to cancellation icon
- <meeting-point value="true" image-path="../../../../common/tech_meeting_point.bmp"/> Can the unit be used as a meeting point for other units, and the UI icon to be used to initiate.
- <selection-sounds enabled="true"> Audio feedback to note unit selections
- <sound path="../../../../common/tech_click.wav" />
- </selection-sounds>
- <command-sounds enabled="true"> Audio feedback to note unit UI selections
- <sound path="../../../../common/tech_click.wav" />
- </command-sounds>
- </parameters>
- <skills> Skills are what a unit can do.
- <skill>
- ...
- </skill>
- <skill>
- </skills>
- <parameters>
- <commands> Commands create the specific UI for accessing skills
- <command>
- ...
- </command>
- <command>
- </commands>
- <commands> Commands create the specific UI for accessing skills
- </unit>