From MegaGlest
(Redirected from Tech name.xml)
Jump to: navigation, search

(Back to XML Overview )

The techtree XML is placed in the root folder of a techtree, and stores all the attack and armor types, as well as the damage multipliers that result from them. The techtree XML is the same among all forks of Glest.


<?xml version="1.0" standalone="no"?>
    <description value="my techtree" />
        <attack-type name="attack1" />
        <attack-type name="attack2" />	
        <armor-type name="armor1" />
        <armor-type name="armor2" />
        <damage-multiplier attack="attack1" armor="armor1" value="0.5" />
        <damage-multiplier attack="attack1" armor="armor2" value="1.25" />



Unused, but meant to be a short name for the techtree. Unlikely to ever be used in the future.


A list of attack type names. These are the names you can give attack skills in the Unit XML, and will be used to create damage multipliers.


A list of armor type names. These are the names you can give each unit's armor (each unit must have a type) and will be used to create damage multipliers.


A list of multipliers for the different damage types. If the attack and armor type match, the damage will be multiplied by that amount. For example, if one attack type is "arrow", it might not be very effective against units who have the armor type "stone". Thus, we might give it a multiplier of 0.5, which halves our damage. However, if this arrow is very effective against leather armor, we might increase the damage it can do against leather by giving it a multiplier of 1.25, doing 25% (one quarter) more damage.

You can have as many damage multipliers, attack types, and armor types as you want. However, attack and armor types referenced in the damage multipliers tag, as well as in the unit XML must exist here.


MG does look for a loading screen which must be called loading_screen.* in the techtree folder.

See Also[edit]