WEAPON Element


WEAPON (a child element of CHARACTER) determines the default and basic weapon used by the character.

Supported Values

WEAPON supports the use of the weapon's name or its zero-based index (as in "data/xml/weapons.xml") as value.

Examples

In this example, WEAPON uses the weapon's name as value.

  • <CHARACTERS>
    • <CHARACTER>
      • <BASE>
        • <NAME>Cloud</NAME>
        • ......
      • </BASE>
      • <WEAPON>Ultima Sword</WEAPON>
      • ......
    • </CHARACTER>
    • ......
  • </CHARACTERS>

In this example, WEAPON uses the weapon's zero-based index as value.

  • <CHARACTERS>
    • <CHARACTER>
      • <BASE>
        • <NAME>Cloud</NAME>
        • ......
      • </BASE>
      • <WEAPON>0</WEAPON>
      • ......
    • </CHARACTER>
    • ......
  • </CHARACTERS>