ISnopchenko

PB3F - automining / autorepair script

Mar 7th, 2021 (edited)
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.83 KB | None | 0 0
  1. # stat_txt.tbl entry 1362: Brood Wars Protoss 3 - Town F<0>
  2. PB3F(1362, 101, bwscript):
  3. deaths(0, Exactly, 0, Abathur<0>Defiler, PB3F 0000)
  4. deaths(0, Exactly, 1, Abathur<0>Defiler, PB3F 0001)
  5. deaths(0, Exactly, 2, Abathur<0>Defiler, PB3F 0002)
  6. deaths(0, Exactly, 3, Abathur<0>Defiler, PB3F 0003)
  7. deaths(0, Exactly, 5, Abathur<0>Defiler, PB3F 0004)
  8. deaths(0, Exactly, 6, Abathur<0>Defiler, PB3F 0005)
  9. deaths(0, Exactly, 7, Abathur<0>Defiler, PB3F 0006)
  10. deaths(0, Exactly, 10, Abathur<0>Defiler, PB3F 0007)
  11. deaths(0, Exactly, 11, Abathur<0>Defiler, PB3F 0008)
  12. deaths(0, Exactly, 14, Abathur<0>Defiler, PB3F 0009)
  13. deaths(0, Exactly, 18, Abathur<0>Defiler, PB3F 0010)
  14. deaths(0, Exactly, 19, Abathur<0>Defiler, PB3F 0011)
  15. deaths(0, Exactly, 20, Abathur<0>Defiler, PB3F 0012)
  16. deaths(0, Exactly, 23, Abathur<0>Defiler, PB3F 0013)
  17. deaths(0, Exactly, 27, Abathur<0>Defiler, PB3F 0014)
  18.  
  19. --PB3F 0000--
  20. disruption_web()
  21. stop()
  22.  
  23. --PB3F 0001--
  24. issue_order(MoveToMinerals, 1, Terran SCV, Loc.12, Loc.10, Mineral Field<0>Type 1, EachAtMostOnce)
  25. issue_order(MoveToMinerals, 1, Terran SCV, Loc.13, Loc.10, Mineral Field<0>Type 2, EachAtMostOnce)
  26. issue_order(MoveToMinerals, 1, Terran SCV, Loc.14, Loc.11, Mineral Field<0>Type 3, EachAtMostOnce)
  27. issue_order(MoveToMinerals, 1, Terran SCV, Loc.15, Loc.11, Mineral Field<0>Type 1, EachAtMostOnce)
  28. goto(PB3F 0015)
  29.  
  30. --PB3F 0002--
  31. issue_order(MoveToMinerals, 1, Terran SCV, Loc.120, Loc.124, Mineral Field<0>Type 1, EachAtMostOnce)
  32. issue_order(MoveToMinerals, 1, Terran SCV, Loc.121, Loc.124, Mineral Field<0>Type 2, EachAtMostOnce)
  33. issue_order(MoveToMinerals, 1, Terran SCV, Loc.122, Loc.125, Mineral Field<0>Type 3, EachAtMostOnce)
  34. issue_order(MoveToMinerals, 1, Terran SCV, Loc.123, Loc.125, Mineral Field<0>Type 1, EachAtMostOnce)
  35. goto(PB3F 0004)
  36.  
  37. --PB3F 0003--
  38. issue_order(MoveToMinerals, 2, Terran SCV, Loc.112, Loc.111, Mineral Field<0>Type 2, EachAtMostOnce)
  39. issue_order(MoveToMinerals, 2, Terran SCV, Loc.112, Loc.111, Mineral Field<0>Type 3, EachAtMostOnce)
  40. issue_order(MoveToMinerals, 2, Terran SCV, Loc.113, Loc.109, Mineral Field<0>Type 1, EachAtMostOnce)
  41. issue_order(MoveToMinerals, 2, Terran SCV, Loc.113, Loc.109, Mineral Field<0>Type 3, EachAtMostOnce)
  42. goto(PB3F 0015)
  43.  
  44. --PB3F 0007--
  45. issue_order(MoveToMinerals, 1, Terran SCV, Loc.183, Loc.183, Mineral Field<0>Type 2, EachAtMostOnce)
  46. issue_order(MoveToMinerals, 1, Terran SCV, Loc.158, Loc.158, Mineral Field<0>Type 1, EachAtMostOnce)
  47. issue_order(MoveToMinerals, 1, Terran SCV, Loc.195, Loc.195, Mineral Field<0>Type 2, EachAtMostOnce)
  48. issue_order(MoveToMinerals, 1, Terran SCV, Loc.196, Loc.196, Mineral Field<0>Type 2, EachAtMostOnce)
  49. issue_order(MoveToMinerals, 1, Terran SCV, Loc.197, Loc.197, Mineral Field<0>Type 3, EachAtMostOnce)
  50. call(PB3F 0016)
  51. call(PB3F 0017)
  52. stop()
  53.  
  54. --PB3F 0008--
  55. issue_order(MoveToMinerals, 1, Protoss Probe, Loc.97, Loc.97, Mineral Field<0>Type 1, EachAtMostOnce)
  56. issue_order(MoveToMinerals, 1, Protoss Probe, Loc.100, Loc.100, Mineral Field<0>Type 2, EachAtMostOnce)
  57. issue_order(MoveToMinerals, 1, Protoss Probe, Loc.101, Loc.101, Mineral Field<0>Type 3, EachAtMostOnce)
  58. issue_order(MoveToMinerals, 1, Terran SCV, Loc.98, Loc.98, Mineral Field<0>Type 1, EachAtMostOnce)
  59. issue_order(MoveToMinerals, 1, Terran SCV, Loc.102, Loc.102, Mineral Field<0>Type 3, EachAtMostOnce)
  60. issue_order(MoveToMinerals, 1, Terran SCV, Loc.103, Loc.103, Mineral Field<0>Type 2, EachAtMostOnce)
  61. call(PB3F 0016)
  62. call(PB3F 0017)
  63. call(PB3F 0018)
  64. stop()
  65.  
  66. --PB3F 0009--
  67. issue_order(MoveToGas, 2, Protoss Probe, Loc.57, Loc.57, Protoss Assimilator, Own)
  68. issue_order(MoveToGas, 2, Protoss Probe, Loc.58, Loc.58, Protoss Assimilator, Own)
  69. issue_order(MoveToMinerals, 2, Protoss Probe, Loc.59, Loc.59, Mineral Field<0>Type 2, EachAtMostOnce)
  70. issue_order(MoveToMinerals, 2, Protoss Probe, Loc.59, Loc.59, Mineral Field<0>Type 3, EachAtMostOnce)
  71. issue_order(MoveToMinerals, 2, Protoss Probe, Loc.61, Loc.61, Mineral Field<0>Type 1, EachAtMostOnce)
  72. issue_order(MoveToMinerals, 2, Protoss Probe, Loc.61, Loc.61, Mineral Field<0>Type 3, EachAtMostOnce)
  73. issue_order(MoveToMinerals, 4, Protoss Probe, Loc.62, Loc.62, Mineral Field<0>Type 1, EachAtMostOnce)
  74. issue_order(MoveToMinerals, 4, Protoss Probe, Loc.62, Loc.62, Mineral Field<0>Type 2, EachAtMostOnce)
  75. issue_order(MoveToMinerals, 4, Protoss Probe, Loc.62, Loc.62, Mineral Field<0>Type 3, EachAtMostOnce)
  76. call(PB3F 0018)
  77. stop()
  78.  
  79. --PB3F 0010--
  80. issue_order(MoveToMinerals, 5, Protoss Probe, Loc.181, Loc.181, Mineral Field<0>Type 1, EachAtMostOnce)
  81. issue_order(MoveToMinerals, 5, Protoss Probe, Loc.181, Loc.181, Mineral Field<0>Type 2, EachAtMostOnce)
  82. issue_order(MoveToMinerals, 5, Protoss Probe, Loc.181, Loc.181, Mineral Field<0>Type 3, EachAtMostOnce)
  83. issue_order(MoveToMinerals, 5, Terran SCV, Loc.182, Loc.182, Mineral Field<0>Type 1, EachAtMostOnce)
  84. issue_order(MoveToMinerals, 5, Terran SCV, Loc.182, Loc.182, Mineral Field<0>Type 2, EachAtMostOnce)
  85. issue_order(MoveToMinerals, 5, Terran SCV, Loc.182, Loc.182, Mineral Field<0>Type 3, EachAtMostOnce)
  86. call(PB3F 0016)
  87. call(PB3F 0017)
  88. call(PB3F 0018)
  89. call(PB3F 0019)
  90. call(PB3F 0020)
  91. stop()
  92.  
  93. --PB3F 0011--
  94. issue_order(MoveToMinerals, 5, Zerg Drone, Loc.66, Loc.66, Mineral Field<0>Type 1, EachAtMostOnce)
  95. issue_order(MoveToMinerals, 5, Zerg Drone, Loc.66, Loc.66, Mineral Field<0>Type 2, EachAtMostOnce)
  96. issue_order(MoveToMinerals, 5, Zerg Drone, Loc.66, Loc.66, Mineral Field<0>Type 3, EachAtMostOnce)
  97. call(PB3F 0018)
  98. call(PB3F 0020)
  99. stop()
  100.  
  101. --PB3F 0012--
  102. issue_order(MoveToGas, 2, Terran SCV, Loc.139, Loc.139, Terran Refinery, Own)
  103. issue_order(MoveToMinerals, 3, Terran SCV, Loc.140, Loc.140, Mineral Field<0>Type 1, EachAtMostOnce)
  104. issue_order(MoveToMinerals, 3, Terran SCV, Loc.140, Loc.140, Mineral Field<0>Type 2, EachAtMostOnce)
  105. issue_order(MoveToMinerals, 3, Terran SCV, Loc.140, Loc.140, Mineral Field<0>Type 3, EachAtMostOnce)
  106. issue_order(MoveToMinerals, 2, Protoss Probe, Loc.141, Loc.141, Mineral Field<0>Type 2, EachAtMostOnce)
  107. issue_order(MoveToMinerals, 2, Protoss Probe, Loc.141, Loc.141, Mineral Field<0>Type 3, EachAtMostOnce)
  108. issue_order(MoveToMinerals, 2, Protoss Probe, Loc.142, Loc.142, Mineral Field<0>Type 2, EachAtMostOnce)
  109. issue_order(MoveToMinerals, 2, Protoss Probe, Loc.142, Loc.142, Mineral Field<0>Type 3, EachAtMostOnce)
  110. call(PB3F 0016)
  111. call(PB3F 0017)
  112. call(PB3F 0018)
  113. call(PB3F 0019)
  114. call(PB3F 0020)
  115. stop()
  116.  
  117. --PB3F 0013--
  118. issue_order(MoveToMinerals, 1, Protoss Probe, Loc.19, Loc.19, Mineral Field<0>Type 3, EachAtMostOnce)
  119. issue_order(MoveToMinerals, 1, Protoss Probe, Loc.20, Loc.20, Mineral Field<0>Type 1, EachAtMostOnce)
  120. issue_order(MoveToMinerals, 1, Protoss Probe, Loc.21, Loc.21, Mineral Field<0>Type 3, EachAtMostOnce)
  121. issue_order(MoveToMinerals, 1, Protoss Probe, Loc.22, Loc.22, Mineral Field<0>Type 1, EachAtMostOnce)
  122. call(PB3F 0018)
  123. stop()
  124.  
  125. --PB3F 0014--
  126. issue_order(MoveToMinerals, 1, Terran SCV, Loc.12, Loc.12, Mineral Field<0>Type 3, EachAtMostOnce)
  127. issue_order(MoveToMinerals, 1, Terran SCV, Loc.13, Loc.13, Mineral Field<0>Type 1, EachAtMostOnce)
  128. issue_order(MoveToMinerals, 1, Terran SCV, Loc.14, Loc.14, Mineral Field<0>Type 2, EachAtMostOnce)
  129. issue_order(MoveToMinerals, 1, Terran SCV, Loc.15, Loc.15, Mineral Field<0>Type 1, EachAtMostOnce)
  130. call(PB3F 0016)
  131. call(PB3F 0017)
  132. call(PB3F 0018)
  133. call(PB3F 0019)
  134. call(PB3F 0020)
  135. stop()
  136.  
  137. --PB3F 0004--
  138. call(PB3F 0016)
  139. call(PB3F 0019)
  140. stop()
  141.  
  142. --PB3F 0005--
  143. call(PB3F 0016)
  144. call(PB3F 0017)
  145. call(PB3F 0019)
  146. stop()
  147.  
  148. --PB3F 0006--
  149. call(PB3F 0016)
  150.  
  151. --PB3F 0015--
  152. call(PB3F 0017)
  153. call(PB3F 0018)
  154. stop()
  155.  
  156. --PB3F 0016--
  157. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Bunker, 80, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100))
  158. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Bunker, 75, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100))
  159. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Battlecruiser, 70, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | SpellEffects(Plague) | TileFlags(Walkable))
  160. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Siege Tank<0>Siege Mode | Terran Missile Turret, 65, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | SpellEffects(Plague))
  161. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Battlecruiser, 60, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | WithoutSpellEffects(Plague) | TileFlags(Walkable))
  162. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Siege Tank<0>Siege Mode, 55, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | WithoutSpellEffects(Plague))
  163. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Siege Tank<0>Tank Mode, 50, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100))
  164. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Science Vessel | Terran Stingray, 45, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | TileFlags(Walkable))
  165. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Missile Turret, 40, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | WithoutSpellEffects(Plague))
  166. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Dropship | Terran Wraith, 35, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | TileFlags(Walkable))
  167. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Goliath | Terran Vulture, 30, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100))
  168. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Command Center | Terran Starport | Terran Factory | Terran Barracks | Terran Science Facility | Terran Nuclear Silo | Terran Physics Lab | Terran Supply Depot<0>100 Supply, 30, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | TileFlags(Walkable))
  169. idle_orders(Repair, 35, 6, Terran SCV, 256, Terran Supply Depot | Terran Academy | Terran Engineering Bay | Terran Armory | Power Generator | Psi Disrupter | Norad II<0>Crashed Battlecruiser | Terran Comsat Station | Terran Covert Ops | Terran Machine Shop | Terran Control Tower, 20, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | TileFlags(Walkable))
  170. idle_orders(Repair, 35, 6, Terran SCV, 128, Terran SCV, 15, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100))
  171. return()
  172.  
  173. --PB3F 0017--
  174. idle_orders(Restoration, 200, 1, Terran Medic, 640, Group_Men, 55, NotEnemies | Own | Allied | Self(Energy(GreaterThan, 65.0)) | SpellEffects(Irradiate) | UnitFlags(Organic))
  175. idle_orders(Restoration, 200, 1, Terran Medic, 640, Group_Men, 50, NotEnemies | Own | Allied | Self(Energy(GreaterThan, 65.0)) | SpellEffects(Plague))
  176. idle_orders(Restoration, 200, 1, Terran Medic, 640, Group_Men, 45, NotEnemies | Own | Allied | Self(Energy(GreaterThan, 90.0)) | SpellEffects(Lockdown))
  177. return()
  178.  
  179. --PB3F 0018--
  180. idle_orders(RechargeShieldsUnit, 180, 8, Group_Men, 256, Protoss Shield Battery, 50, Own | Self(Shields(LessThanPercent, 75)))
  181. return()
  182.  
  183. --PB3F 0019--
  184. idle_orders(Repair, 35, 6, Terran SCV, 384, The Liberator<0>Stingray | Stingray II<0>Stingray | Hyperion<0>Horner Battlecruiser | Magellan<0>Science Vessel | Hyperion<0>Duke Battlecruiser | Gerard DuGalle<0>Battlecruiser, 90, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100) | TileFlags(Walkable))
  185. idle_orders(Repair, 35, 6, Terran SCV, 384, Edmund Duke<0>Siege Tank | Edmund Duke<0>Siege Mode | Wilkes Butler<0>Goliath | Jim Raynor<0>Vulture | Kara Vaessen<0>Vulture, 85, NotEnemies | Own | Allied | Self(Order(PlayerGuard)) | Hp(LessThanPercent, 100))
  186. return()
  187.  
  188. --PB3F 0020--
  189. idle_orders(AttackUnit, 90, 6, Zerg Broodling, 1280, Any, 60, Self(Order(PlayerGuard)) | TileFlags(Walkable))
  190. return()
  191.  
Advertisement
Add Comment
Please, Sign In to add comment