All pastes #509005 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-05-25 07:42 UTC
rendered paste body

<unit>
    <name>Seiege Tank</name>
    <hp>
        <initial>100</initial>
        <maximum>100</maximum>
        <change>0</change> <!-- for zerg-like units -->
        <if expr="hp<maximum/3">
            <change>0</change> <!-- for terran buildings -->
        </if>
    </hp>
    <shield>
        <initial>0</initial>
        <maximum>0</maximum>
        <change>0</change> <!-- for protoss units -->
    </shield>
    <energy>
        <initial>0</initial>
        <maximum>0</maximum>
        <change>0</change> <!-- how fast energy is produced -->
    </energy>
    <materials>100</materials>
    <fuel>
        <initial>50</initial>
        <maximum>50</maximum>
        <change>0</change> <!-- for larger carrier type units -->
    </fuel>
    <attacks>
        <Missile>
            <type>missle</type>
            <cooldown>0.4</cooldown>
            <sound>shoot.wav</sound>
            <moving>true</moving>
            <ground_damage>20</ground_damage>
            <air_damage>20</air_damage>
            <range>15</range>
            <ground_damage_increase>5</ground_damage_increase> <!-- increase per upgrade -->
            <air_damage_increase>5</air_damage_increase>
        </Missile>
    </attacks>
    <!-- description that will be used in the game and editor -->
    <description>This is a typical seige tank</description>
    <armor>5</armor>
    <sight_range>10<sight_range>
    <move_speed>10</move_speed>
    <constant_angular_speed>0</constant_angular_speed>
    <body>
        <image>tank.bmp</image>
        <!-- true only if the unit turns in the direction it is moving -->
        <turns>true</turns>
    </body>
    <turret>
        <image></image>
    </turret>
    <special_abilities>
        <seige_mode>
            <starts_with>false</starts_with>
            <researched></researched> <!-- stuff done when ability is first researched -->
            <type>switch</type> <!-- how ability is enabled/disabled -->
            <enable>unit/attacks/Missile/range=18</enable> <!-- things done when ability is enabled -->
            <disableunit/attacks/Missile/range=15></enable> <!-- things done when ability is enabled -->
        </seige_mode>
    </special_abilities>
    <unit_count>2</unit_count>
    <!-- The following is usually only for structures -->
    <supply_provided>0</supply_provided>
    <builds></builds>
    <requires></requires>
    <researches></researches>
</unit>