XML/Faction

From MegaGlest
Revision as of 15:54, 1 November 2008 by Daniel Santos (talk) (Reformatting. It looks like we can use <pre> tags now, that's a new one on me)
Jump to: navigation, search
<?xml version="1.0" standalone="no"?>
<faction>
    <starting-resources>
        <!-- The XML filename (.xml extension not needed) and amount of all
             starting resources for the faction.-->
        <resource name="filename" amount="#"/>
    </starting-resources>

    <starting-units>
        <!-- The XML filename (.xml extension not needed) and amount of all
             starting units for the faction.-->
        <unit name="castle" amount="#"/>
    </starting-units>

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

-- GAE Only -->

    <!-- Sounds to play to notify player of an off-screen attack -->
    <attack-notice enabled="true" min-delay="30">
        <sound-file path="sounds/attacked1.wav"/>
        <sound-file path="sounds/attacked2.wav"/>
    </attack-notice>

    <!-- Sounds to play to notify player that an enemy has been sighted
         off-screen -->
    <enemy-sighted-notice enabled="false" min-delay="30"/>
        <sound-file path="sounds/enemy_sighted1.wav"/>
    </enemy-sighted-notice>

    <!-- Define any subfactions here (see GAE Forums for help or the FPM
         mod for examples. -->
    <subfactions>
        <subfaction name="subfaction_a"/>
        <subfaction name="subfaction_b"/>
    </subfactions>

<-- GAE Only --

</faction>