For all the clowns that don't understand the functionality of this engine, read this before you post:
<fails basepenalty="CRYSTALLIZE" basevalue="2" > <fail tier="ADENA" basepenalty="NONE" basevalue="0" > <target enchants="1,2,3,4,5,6,7,8,9,10,11,12" penalty="SET" value="4"/> <target enchants="13,14,15,16,17,18" penalty="SET" value="10"/>
<target enchants="19,20" penalty="DEC" value="4"/> </fail>
</fails>
Let "Arcana Mace" be an item that belongs to ADENA tier category.
If we fail enchanting to +10 the enchant will reset to +4 ("SET" command with value=4)
if we fail enchanting to + 15 the enchant will reset to +10 same as above but different value (10)
if we fail enchanting to + 20 the enchant will DECREMENT by 4, (result = current_enchant - DEC_VALUE) = 19 - 4 = 15
IF the enchant or the TIER is not specified or doesnt match the enchanted item as a "target" or "fail" the basevalue of the parent node will be inherited.
for example: If we fail enchanting a +21 Arcana Mace WHOSE case IS NOT specified in a target group the default basepenalty NONE will be applied which basically means no action. All other cases will lead to the very basic penalty which is CRYSTALLIZE
All these as commanded on the XML, this is neither "basic" or "shared", if your understanding and IQ is negative thats not my fault