A unit is any object in the game that can be controlled or selected at any point in time. Units include anything from Terran Marines to Protoss Pylons to Vespene Geysers and even the Installation tileset's various traps. Some units, such as Installation's Doors and the Defiler's Dark Swarm, cannot be controlled or selected.
Units are the most common element used and referenced in mapping. All maps rely very heavily on units. Also, because they are virtually the only thing that the players can control during the game, they are one of the few input devices available for use in advanced maps.
There are four basic types of units (aside from the technical classifications that shall be covered below). Buildings are (usually) immobile units that are (usually) constructed by worker units. (There are exceptions to both criteria; Terran buildings can lift off and become mobile, and a Zerg Nydus Canal can build another Zerg Nydus Canal to serve as its exit.) Men (the kind of unit most commonly meant when referring to units at all) are mobile units, and are usually capable of attacking. (There are exceptions here as well; Terran Siege Tanks (Siege Mode) are among several men that cannot move, and Terran Civilians cannot attack.) Unused units are unfinished or beta units, such as the Independent Starport. (Many of these crash the map.) Doodad units are units that typically appear in the form of Unit Sprites attached to doodads.
Any unit whose ID is above the normal range (0-227, see #Unit IDs) is an Extended Unit. Such units tend to have very strange properties which can change when the game is patched. This is because these technically are not units; they are other types of data that the game is being coerced into interpreting as unit data. (Unit IDs can go up to 65535 due to binary-related restrictions on the size of computer variables, but Blizzard did not actually reserve space for 65535 units, as there are only 228 in the game!)
The vast majority of extended Unit IDs will produce units that either do nothing (disappear at the start of the game) or crash the game. (Some can even crash map editors that use the game's resource files, such as SCMDraft 2.) It is possible, however, for an extended unit to have useful properties. In a previous patch, an extended unit was discovered that enabled units to shoot much further than they normally could (up to 140 tiles away).
Unit sprites are one of the two types of sprites supported by the StarCraft engine. Unit sprites appear to have been intended for use as a mechanism for attaching units to doodads. They therefore possess several behaviors that are useful for that purpose. Several Installation doodads, including the doors and traps, incorporate unit sprites to give doodads (which are ordinarily just terrain) unit-like behaviors. Third-party editors allow mappers to place unit sprites without an associated doodad.
These units have different properties than regular units.
- All sprite units will start with their current HP at the default of that unit. Example: Terran Firebats will start at 50 current HP.
- Max HP will be whatever it was set to in the map editor.
- Using this, it is possible to create a Firebat that has 50/10 HP. This will result in the unit having a wireframe glow, as if they had Protoss shields.
- Normal units can have negative Max HP values with no problems, but if you click on a sprite unit that has negative Max HP, the game will crash.
- Some unit sprites become non-solid when disabled. (This is used for Installation's floor traps and doors.)
- Pre-placed sprite units appear in the game regardless of whether the player who owns them is in the game or not. (This is used so that non-rescuable floor traps that are hostile to all players can be placed without having to allocate an additional player, add a Start Location, etc..)
Units with negative HP
Third-party map editors allow mappers to set a unit's Max HP to a zero or negative value. Units with negative Max HP are killed in one hit. Units with zero max HP aren't damaged by attacks.
Some spells do not work on units with negative HP. Among them are:
Units that have the hallucinated property appear solid blue to the player who owns them. They look like normal units to all other players, including players that have shared vision of the units' owner. They take double damage from attacks and are killed instantly by spells. They have energy that rapidly counts down to zero; when it runs out, the unit dies. When Hallucinated units are killed or die from losing their energy, they vanish in a puff of blue gases. They can attack, but they deal no damage.
Conditions (like Bring and Command) cannot detect them, but some Actions can be used on them. It is possibly to detect a hallucinated unit based on the results of an action. For example, you can center a location on one, and then detect if the location has moved and where it has moved to. Hallucinated units cannot be given to other players using triggers. Like Broodlings, their energy cannot be set with the Modify Unit Energy action, so their lifespan cannot be prolonged.
Third-party map editors allow the creation of pre-placed hallucinated buildings. Some hallucinated buildings will still function to some degree before they run out of energy and disappear.
Powerups are immobile units that can be picked up and carried by worker units (Terran SCVs, Protoss Probes, and Zerg Drones). Triggers can create powerups in areas that are occupied by other units (but not buildings or other powerups). When a powerup is on a ground unit, that unit will try to move off of it, except in the case of immobile units such as a Siege Tank (in Siege Mode) or Door; this happens when any two mobile units occupy the same space.
The standard powerups that are available to map makers are:
All of the normal powerups are invincible.
The standard Campaign Editor cannot place the extra powerups. Only third-party map editors can add them. They also cannot be created with triggers. They are not invincible by default; they take .5 damage from all attacks.
- Mineral Chunk (Type 1)
- Mineral Chunk (Type 2)
- Vespene Orb (Protoss Type 1)
- Vespene Orb (Protoss Type 2)
- Vespene Sac (Zerg Type 1)
- Vespene Sac (Zerg Type 2)
- Vespene Tank (Terran Type 1)
- Vespene Tank (Terran Type 2)
These unit stats cannot be edited in a normal map. For the default unit stats such as mineral and gas cost, build time, damage, HP, etc., just check in your map editor.
Each type of unit has a number associated with it. This number is called a UnitID. UnitIDs determine what a unit is. What we think of as a "Terran Marine", StarCraft thinks of as a unit whose UnitID is 0.
0 = Terran Marine 1 = Terran Ghost 2 = Terran Vulture 3 = Terran Goliath 4 = Goliath Turret 5 = Terran Siege Tank (Tank Mode) 6 = Tank Turret(Tank Mode) 7 = Terran SCV 8 = Terran Wraith 9 = Terran Science Vessel 10 = Gui Montang (Firebat) 11 = Terran Dropship 12 = Terran Battlecruiser 13 = Vulture Spider Mine 14 = Nuclear Missile 15 = Terran Civilian 16 = Sarah Kerrigan (Ghost) 17 = Alan Schezar (Goliath) 18 = Alan Schezar Turret 19 = Jim Raynor (Vulture) 20 = Jim Raynor (Marine) 21 = Tom Kazansky (Wraith) 22 = Magellan (Science Vessel) 23 = Edmund Duke (Siege Tank) 24 = Edmund Duke Turret 25 = Edmund Duke (Siege Mode) 26 = Edmund Duke Turret 27 = Arcturus Mengsk (Battlecruiser) 28 = Hyperion (Battlecruiser) 29 = Norad II (Battlecruiser) 30 = Terran Siege Tank (Siege Mode) 31 = Tank Turret (Siege Mode) 32 = Firebat 33 = Scanner Sweep 34 = Terran Medic 35 = Zerg Larva 36 = Zerg Egg 37 = Zerg Zergling 38 = Zerg Hydralisk 39 = Zerg Ultralisk 40 = Zerg Broodling 41 = Zerg Drone 42 = Zerg Overlord 43 = Zerg Mutalisk 44 = Zerg Guardian 45 = Zerg Queen 46 = Zerg Defiler 47 = Zerg Scourge 48 = Torrarsque (Ultralisk) 49 = Matriarch (Queen) 50 = Infested Terran 51 = Infested Kerrigan 52 = Unclean One (Defiler) 53 = Hunter Killer (Hydralisk) 54 = Devouring One (Zergling) 55 = Kukulza (Mutalisk) 56 = Kukulza (Guardian) 57 = Yggdrasill (Overlord) 58 = Terran Valkyrie Frigate 59 = Mutalisk/Guardian Cocoon 60 = Protoss Corsair 61 = Protoss Dark Templar(Unit) 62 = Zerg Devourer 63 = Protoss Dark Archon 64 = Protoss Probe 65 = Protoss Zealot 66 = Protoss Dragoon 67 = Protoss High Templar 68 = Protoss Archon 69 = Protoss Shuttle 70 = Protoss Scout 71 = Protoss Arbiter 72 = Protoss Carrier 73 = Protoss Interceptor 74 = Dark Templar(Hero) 75 = Zeratul (Dark Templar) 76 = Tassadar/Zeratul (Archon) 77 = Fenix (Zealot) 78 = Fenix (Dragoon) 79 = Tassadar (Templar) 80 = Mojo (Scout) 81 = Warbringer (Reaver) 82 = Gantrithor (Carrier) 83 = Protoss Reaver 84 = Protoss Observer 85 = Protoss Scarab 86 = Danimoth (Arbiter) 87 = Aldaris (Templar) 88 = Artanis (Scout) 89 = Rhynadon (Badlands Critter) 90 = Bengalaas (Jungle Critter) 91 = Unused - Was Cargo Ship 92 = Unused - Was Mercenary Gunship 93 = Scantid (Desert Critter) 94 = Kakaru (Twilight Critter) 95 = Ragnasaur (Ashworld Critter) 96 = Ursadon (Ice World Critter) 97 = Lurker Egg 98 = Raszagal 99 = Samir Duran (Ghost) 100 = Alexei Stukov (Ghost) 101 = Map Revealer 102 = Gerard DuGalle 103 = Zerg Lurker 104 = Infested Duran 105 = Disruption Web 106 = Terran Command Center 107 = Terran Comsat Station 108 = Terran Nuclear Silo 109 = Terran Supply Depot 110 = Terran Refinery 111 = Terran Barracks 112 = Terran Academy 113 = Terran Factory 114 = Terran Starport 115 = Terran Control Tower 116 = Terran Science Facility 117 = Terran Covert Ops 118 = Terran Physics Lab 119 = Unused - Was Starbase? 120 = Terran Machine Shop 121 = Unused - Was Repair Bay? 122 = Terran Engineering Bay 123 = Terran Armory 124 = Terran Missile Turret 125 = Terran Bunker 126 = Norad II 127 = Ion Cannon 128 = Uraj Crystal 129 = Khalis Crystal 130 = Infested Command Center 131 = Zerg Hatchery 132 = Zerg Lair 133 = Zerg Hive 134 = Zerg Nydus Canal 135 = Zerg Hydralisk Den 136 = Zerg Defiler Mound 137 = Zerg Greater Spire 138 = Zerg Queen's Nest 139 = Zerg Evolution Chamber 140 = Zerg Ultralisk Cavern 141 = Zerg Spire 142 = Zerg Spawning Pool 143 = Zerg Creep Colony 144 = Zerg Spore Colony 145 = Unused Zerg Building 146 = Zerg Sunken Colony 147 = Zerg Overmind (With Shell) 148 = Zerg Overmind 149 = Zerg Extractor 150 = Mature Chrysalis 151 = Zerg Cerebrate 152 = Zerg Cerebrate Daggoth 153 = Unused Zerg Building 5 154 = Protoss Nexus 155 = Protoss Robotics Facility 156 = Protoss Pylon 157 = Protoss Assimilator 158 = Unused Protoss Building 159 = Protoss Observatory 160 = Protoss Gateway 161 = Unused Protoss Building 162 = Protoss Photon Cannon 163 = Protoss Citadel of Adun 164 = Protoss Cybernetics Core 165 = Protoss Templar Archives 166 = Protoss Forge 167 = Protoss Stargate 168 = Stasis Cell/Prison 169 = Protoss Fleet Beacon 170 = Protoss Arbiter Tribunal 171 = Protoss Robotics Support Bay 172 = Protoss Shield Battery 173 = Khaydarin Crystal Formation 174 = Protoss Temple 175 = Xel'Naga Temple 176 = Mineral Field (Type 1) 177 = Mineral Field (Type 2) 178 = Mineral Field (Type 3) 179 = Cave 180 = Cave-in 181 = Cantina 182 = Mining Platform 183 = Independant Command Center 184 = Independant Starport 185 = Independant Jump Gate 186 = Ruins 187 = Kyadarin Crystal Formation 188 = Vespene Geyser 189 = Warp Gate 190 = PSI Disruptor 191 = Zerg Marker 192 = Terran Marker 193 = Protoss Marker 194 = Zerg Beacon 195 = Terran Beacon 196 = Protoss Beacon 197 = Zerg Flag Beacon 198 = Terran Flag Beacon 199 = Protoss Flag Beacon 200 = Power Generator 201 = Overmind Cocoon 202 = Dark Swarm 203 = Floor Missile Trap 204 = Floor Hatch 205 = Left Upper Level Door 206 = Right Upper Level Door 207 = Left Pit Door 208 = Right Pit Door 209 = Floor Gun Trap 210 = Left Wall Missile Trap 211 = Left Wall Flame Trap 212 = Right Wall Missile Trap 213 = Right Wall Flame Trap 214 = Start Location 215 = Flag 216 = Young Chrysalis 217 = Psi Emitter 218 = Data Disc 219 = Khaydarin Crystal 220 = Mineral Cluster Type 1 221 = Mineral Cluster Type 2 222 = Protoss Vespene Gas Orb Type 1 223 = Protoss Vespene Gas Orb Type 2 224 = Zerg Vespene Gas Sac Type 1 225 = Zerg Vespene Gas Sac Type 2 226 = Terran Vespene Gas Tank Type 1 227 = Terran Vespene Gas Tank Type 2
Attack speed in average attacks per minute:
Devourer 8 Tank (Sieged) 13 Valkyrie 15 Reaver 15 Arbiter 21 Interceptor 26 Lurker 26 Tank 26 Sunken Colony 29 Guardian 31 Wraith (ground) 31 Scout (ground) 31 Dark Templar 31 Battlecruiser 31 Mutalisk 31 Vulture 32 Dragoon 32 Infested Kerrigan 39 Goliath 42 Ghost 42 Photon Cannon 42 Wraith (air) 42 Scout (air) 43 Tassadar 43 Zealot 43 Firebat 43 Archon 47 Ultralisk 54 Broodling 61 Marine 62 Hydralisk 62 Spore Colony 62 Missile Turret 62 Firebat (stim) 83 Corsair 102 Marine (stim) 105 Zergling 113 Zergling* 166 (with attack speed upgrade)
Marine: 100 Ghost: 350 Vulture: 150 Goliath: 400 Siege Tank: 700 SCV: 100 Firebat: 200 Medic: 250 Wraith: 800 Science Vessel: 1250 Dropship: 600 Battlecruiser: 2400 Valkyrie: 800 Gui Montag: 400 Civilian: 10 Sarah Kerrigan: 700 Alan Schezar: 800 Jim Raynor (Vulture): 300 Jim Raynor (Marine): 200 Tom Kazansky: 1600 Magellan: 2500 Edmund Duke (Tank): 1400 Arcturus Mengsk: 4800 Hyperion: 4800 Norad II: 4800 Samir Duran: 700 Alexei Stukov: 700 Gerard DuGalle: 4800
Vulture Spider Mine: 25
Command Center: 1200 Supply Depot: 150 Refinery: 150 Barracks: 225 Academy: 300 Factory: 600 Starport: 600 Science Facility: 825 Engineering Bay: 195 Armory: 300 Missile Turret: 150 Bunker: 150
Comsat Station: 225 Nuclear Silo: 225 Control Tower: 300 Covert Ops: 225 Physics Lab: 225 Machine Shop: 225
Norad II (Crashed): 5000 Ion Cannon: 5000 Psi Disruptor: 3600 Power Generator: 600
Independent Starport: 10
Zergling: 50 Hydralisk: 350 Ultralisk: 1300 Broodling: 25 Drone: 100 Defiler: 450 Infested Terran: 400 Lurker: 500 Overlord: 200 Mutalisk: 600 Guardian: 1100 Queen: 800 Scourge: 200 Devourer: 1100 Matriarch: 1600 Infested Kerrigan: 4000 Unclean One: 900 Devouring One: 100 Hunter Killer: 500 Torrasque: 2600 Kukulza (Mutalisk): 1200 Kukulza (Guardian): 2200 Yggdrasill: 400 Infested Duran: 700
Larva: 10 Egg: 25 Cocoon: 10
Infested Command Center: 900 Hatchery: 900 Lair: 1200 Hive: 1500 Nydus Canal: 225 Hydralisk Den: 300 Defiler Mound: 450 Greater Spire: 1350 Queen's Nest: 525 Evolution Chamber: 120 Ultralisk Cavern: 825 Spire: 750 Spawning Pool: 225 Creep Colony: 120 Spore Colony: 195 Sunken Colony: 240 Extractor: 75
Overmind (With Shell): 10000 Overmind: 10000 Mature Crysalis: 5000 Cerebrate: 2500 Cerebrate Daggoth: 2500 Overmind Cocoon: 4000
Dark Templar: 650 Dark Archon: 1300 Probe: 100 Zealot: 200 Dragoon: 500 High Templar: 700 Archon: 1400 Reaver: 800 Corsair: 700 Shuttle: 400 Scout: 1300 Arbiter: 2050 Carrier: 1900 Observer: 450 Dark Templar (Hero): 400 Zeratul (Dark Templar): 800 Tassadar/Zeratul (Archon): 2800 Fenix (Zealot): 400 Fenix (Dragoon): 1000 Tassadar (Templar): 1400 Mojo (Scout): 2600 Warbringer (Reaver): 1600 Gantrithor (Carrier): 3800 Danimoth (Arbiter): 4100 Aldaris (Templar): 1400 Artanis (Scout): 2400 Raszagal (Corsair): 1300
Nexus: 1200 Robotics Facility: 900 Pylon: 150 Assimilator: 150 Observatory: 525 Gateway: 225 Photon Cannon: 300 Citadel of Adun: 600 Cybernetics Core: 300 Templar Archives: 750 Forge: 300 Stargate: 900 Fleet Beacon: 1050 Arbiter Tribunal: 1350 Robotics Support Bay: 375 Shield Battery: 150
Stasis Cell/Prison: 5000 Protoss Temple: 5000 Xel'Naga Temple: 5000 Warp Gate: 2000
Rhynadon (Badlands): 10 Bengalaas (Jungle): 10 Scantid (Desert): 10 Kakaru (Twilight): 10 Ragnasaur (Ash World): 10 Ursadon (Ice World): 10