Welcome to the Creatures Wiki! Log in and join the community.

.pray.xml

From Creatures Wiki
Revision as of 00:08, 13 October 2007 by 172.206.100.30 (talk)
Jump to navigation Jump to search

.pray.xml is an XML based file format designed as a modern alternative to PRAY source. The standard is being developed by GameFreak, with assistance by Miya. .pray.xml files are currently only used by MonoTheism.

Sample

Current .pray.xml syntax is something like this example, which includes one agent and one inline file.

<?xml version="1.0" encoding="UTF-8"?>
<pray>
  <filename>example.agents</filename>
  <meta>
    <author>Agent author's name</author>
  </meta>
  <blocks>
    <agnt id="0">
      <name>example agent</name>
      <data>
        <bioenergy>100</bioenergy>
        <type>0</type>
        <anim_file>example.c16</anim_file>
        <anim_gallery>example</anim_gallery>
        <anim_string>0 1 2 4</anim_string>
        <remove_script type="raw">enum 0 0 0 kill targ next</remove_script>
      </data>
      <scripts>
        <script type="path" no="1">C:\whatever\files\script.cos</script>
        <count>1</count>
      </scripts>
      <dependencies>
        <dependency no="1">
          <category>7</category>
          <name>example.catalogue</name>
        </dependency>
        <count>1</count>
      </dependencies>
    </agnt>
    <file id="1">
      <name>example.catalogue</name>
      <path>C:\whatever\files\example.catalogue</path>
    </file>
  </blocks>
</pray>

Related links