XML/Faction

From MegaGlest
Revision as of 14:21, 26 March 2011 by Hofmic (talk) (Adding categories)
Jump to: navigation, search

The faction.xml (replace "faction" with the actual name of the faction) is the base definition for each faction in a tech tree mod and defines the starting units, starting resources and music. (Note: This covers the Glest 3.1.2 specification. For GAE-specific extensions, see GAE/Faction_XML.)

<?xml version="1.0" standalone="no"?>

<faction>
    <starting-resources>
        <-- The name and amount of all starting resources for the faction. May
            appear one or more times. -->
        <resource name="resource_name" amount="#"/>
     </starting-resources>

    <starting-units>
        <-- The name and amount of all starting units for the faction.-->
        <unit name="unit_name" amount="#"/>
    </starting-units>

    <-- Whether any music is to be played and the path to the file -->
    <music value="true" path="../../common/music_tech.ogg"/>

</faction>

Back to XML_Definitions