The rush() command in StarCraft's AI scripts works strangely.
If any unit is within 320 pixels of the AI's "region", and the conditions for that unit's owner is met, then it will jump to the specified block. Rush 0 applies to buildings that aren't completed. The rest only apply to units/buildings that have been completed.
rush(BYTE condition, BLOCK block)- Will jump to the given code block if the condition is met.
| Condition Number | Terran | Zerg | Protoss |
|---|---|---|---|
| 0 | Commands a Barracks | Commands a Spawning Pool | Commands a Gateway |
| 1 | Terran Infantry Score > 16 | Zerg Ground Score > 10 | Zealots > 6 |
| 2 | Terran Infantry Score > 24 | Zerg Air Score > 10 | (Unused) |
| 3 | Terran Infantry Score > 5 | Zerg Ground Score > 2 or commands a Hydralisk Den | Zealots > 1 |
| 4 | Terran Infantry Score > 16 | Zerg Ground Score > 10 | Zealots > 8 |
| 5 | Terran Infantry Score > 6 | Zerg Ground Score > 6 | Zealots > 3 |
| 6 | Terran Infantry Score > 12 | Sunken Colonies > 1 | Dragoons > 1 |
| 7 | Commands a Siege Tank | Commands a Queen | Zealots > 6 |
| 8 | Terran Infantry Score > 5 | Zerg Ground Score > 2 | Zealots > 1 |
| 9 | Terran Infantry Score > 9 | Zerg Ground Score > 4 | Zealots > 5 |
| 10 | Terran Infantry Score > 4 | Zerg Ground Score > 4 | Zealots > 2 |
| 11 | Terran Infantry Score > 10 | Zerg Ground Score > 10 | Zealots > 5 |
| 12 | Terran Infantry Score > 16 | Zerg Air Score > 5 | Protoss Air Score > 2 |
| 13 | Terran Infantry Score > 24 | Zerg Air Score > 10 | Protoss Air Score > 2 |
Note:
Protoss Air Score = Dragoons + Scouts
Zerg Ground Score = Hydralisks + Sunken Colonies
Zerg Air Score = Hydralisks + Mutalisks + (Spore Colonies × 2)
Terran Infantry Score:
if (bunkers × 4 <= marines)
Terran Infantry Score = marines + bunkers × 4
else
Terran Infantry Score = marines × 2
0 comments:
Post a Comment