XML/Techtree

(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.

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

attack-types
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.

armor-types
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.

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.

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