Difference between revisions of "XML/Techtree"

From MegaGlest
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<?xml version="1.0" standalone="no"?>
+
<?xml version="1.0" standalone="no"?>
 +
 +
<tech-tree>
 +
    <description value="experimental tech tree"/>
 +
    <attack-types>          <font color="green">&lt;!--naming types of attacks --&gt;</font>
 +
        <attack-type name="sword"/>
 +
        <attack-type name="arrow"/>
 +
        <attack-type name="magic"/>
 +
    </attack-types>
 +
    <armor-types>          <font color="green">&lt;!--naming types of armor --&gt;</font>
 +
        <armor-type name="leather"/>
 +
        <armor-type name="plate"/>
 +
        <armor-type name="stone"/>
 +
        <armor-type name="wood"/>
 +
        <armor-type name="organic"/>
 +
    </armor-types>
 +
   
 +
    <static-modifiers>    <font color="green">&lt;!--attack vs armor static modifiers --&gt;</font>
 +
        <static-modifier attack="arrow" armor="plate value="-1"/>
 +
    </static-modifiers>
  
*<tech-tree>
+
 
** <description value="experimental tech tree"/>
+
    <damage-multipliers>   <font color="green">&lt;!--attack vs armor multipliers --&gt;</font>
** <attack-types> naming types of attacks
+
        <damage-multiplier attack="arrow" armor="plate" value="0.5"/>
*** <attack-type name="sword"/>
+
        <damage-multiplier attack="arrow" armor="leather" value="1.3"/>
*** <attack-type name="arrow"/>
+
        <damage-multiplier attack="arrow" armor="stone" value="0.3"/>
*** <attack-type name="magic"/>
+
        <damage-multiplier attack="magic" armor="plate" value="0.8"/>
** </attack-types>
+
        <damage-multiplier attack="magic" armor="stone" value="0.5"/>
** <armor-types> naming types of armor
+
        <damage-multiplier attack="sword" armor="stone" value="0.5"/>
*** <armor-type name="leather"/>
+
    </damage-multipliers>
*** <armor-type name="plate"/>
+
</tech-tree>
*** <armor-type name="stone"/>
+
 
*** <armor-type name="wood"/>
+
Back to [[XML_Definitions]]
*** <armor-type name="organic"/>
 
** </armor-types>
 
** <damage-multipliers> attack s armor multipliers
 
*** <damage-multiplier attack="arrow" armor="plate" value="0.5"/>
 
*** <damage-multiplier attack="arrow" armor="leather" value="1.3"/>
 
*** <damage-multiplier attack="arrow" armor="stone" value="0.3"/>
 
*** <damage-multiplier attack="magic" armor="plate" value="0.8"/>
 
*** <damage-multiplier attack="magic" armor="stone" value="0.5"/>
 
*** <damage-multiplier attack="sword" armor="stone" value="0.5"/>
 
** </damage-multipliers>
 
*</tech-tree>
 

Revision as of 02:59, 5 December 2008

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

<tech-tree>
    <description value="experimental tech tree"/>
    <attack-types>          <!--naming types of attacks -->
        <attack-type name="sword"/>
        <attack-type name="arrow"/>
        <attack-type name="magic"/>	
    </attack-types>
    <armor-types>           <!--naming types of armor -->
        <armor-type name="leather"/>
        <armor-type name="plate"/>
        <armor-type name="stone"/>
        <armor-type name="wood"/>
        <armor-type name="organic"/>
    </armor-types>
    
    <static-modifiers>     <!--attack vs armor static modifiers -->
        <static-modifier attack="arrow" armor="plate value="-1"/>
    </static-modifiers>


    <damage-multipliers>    <!--attack vs armor multipliers -->
        <damage-multiplier attack="arrow" armor="plate" value="0.5"/>
        <damage-multiplier attack="arrow" armor="leather" value="1.3"/>
        <damage-multiplier attack="arrow" armor="stone" value="0.3"/>
        <damage-multiplier attack="magic" armor="plate" value="0.8"/>
        <damage-multiplier attack="magic" armor="stone" value="0.5"/>
        <damage-multiplier attack="sword" armor="stone" value="0.5"/>	
    </damage-multipliers>
</tech-tree>

Back to XML_Definitions