XML/Faction

From MegaGlest
Revision as of 15:26, 1 November 2008 by Daniel Santos (talk) (Adding GAE options, will have to figure out a good format and tag to use later, I don't like this one very much)
Jump to: navigation, search

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

  • <faction>
    • <starting-resources>
      • <resource name="filename" amount="#"/> The XML filename (.xml extension not needed) and amount of all starting resources for the faction.
    • </starting-resources>
    • <starting-units>
      • <unit name="castle" amount="#"/> The XML filename (.xml extension not needed) and amount of all starting units for the faction.
    • </starting-units>
    • < music value="true" path="../../common/music_tech.ogg"/> Whether any music is to be played and the path to the file

-- GAE Only -->

    • <attack-notice enabled="true" min-delay="30">
      • <sound-file path="sounds/attacked1.wav"/>
    • </attack-notice>
    • <enemy-sighted-notice enabled="false" min-delay="30"/>
      • <sound-file path="sounds/enemy_sighted1.wav"/>
    • </enemy-sighted-notice>
    • <subfactions>
      • <subfaction name="subfaction_a"/>
      • <subfaction name="subfaction_b"/>
    • </subfactions>

<-- GAE Only --

  • </faction>