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

Difference between revisions of ".pray.xml"

From Creatures Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
   </meta>
 
   </meta>
 
   <blocks>
 
   <blocks>
     <block id="0">
+
     <agnt id="0">
      <type>AGNT</type>
 
 
       <name>example agent</name>
 
       <name>example agent</name>
 
       <data>
 
       <data>
Line 33: Line 32:
 
         <count>1</count>
 
         <count>1</count>
 
       </dependencies>
 
       </dependencies>
     </block>
+
     </agnt>
     <block id="1">
+
     <file id="1">
      <type>FILE</type>
 
 
       <name>example.catalogue</name>
 
       <name>example.catalogue</name>
 
       <path>C:\whatever\files\example.catalogue</path>
 
       <path>C:\whatever\files\example.catalogue</path>
     </block>
+
     </file>
 
   </blocks>
 
   </blocks>
 
  </pray>
 
  </pray>

Revision as of 00:08, 13 October 2007

.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