nitekat

Twitch Plays Starcraft

Jun 16th, 2024 (edited)
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | Software | 0 0
  1. ================TWITCH PLAYS STARCRAFT v 1.0===========================
  2.  
  3. Welcome to the Twitch Plays Starcraft Pastebin! This is going to cover information about the project and the controls for how you can join in and play Starcraft through Twitch!
  4.  
  5. On screen you'll see a lot of information overlayed on top of the game.
  6. -Red numbers indicate unit IDs. These will be very important for issuing commands!
  7. -Green numbers indicate locations on the Build Tile grid! Every 1 unit in Build Tiles is 32 pixels. These will also be very important for issuing commands! Only the even coordinates are displayed to try to reduce clutter.
  8. -Geysers have both red and green numbers displayed, as building a Refinery/Extractor/Assimilator will require the Build Tile location of a Geyser.
  9.  
  10. -COMMANDS
  11. There are a few different formats for commands depending on what you want to.
  12. -SCREEN
  13. -[u/d/l/r] [#]
  14. move the screen up/down/left/right by [#1] Build Tile units. An example would be (without quotes) "r 4" which will move the screen to the right by 4 units.
  15. -s [#]
  16. Center the screen on unit with id [#].
  17. -s [#1][#2]
  18. Move screen so that the Build Tile at ([#1], [#2]) coordinate is at the top left of the screen.
  19. -GAME
  20. -p [0-6]
  21. Change the game speed based on the number entered.
  22. 0 = slowest
  23. 1 = slower
  24. 2 = slow
  25. 3 = normal
  26. 4 = fast
  27. 5 = faster
  28. 6 = fastest
  29. -CONTROL GROUPS
  30. Just like in the game, you can create up to 10 control groups of up to 12 units each! Dead units will be removed from the control groups when an order is issued to the control group or when adding/removing another unit.
  31. -c [0-9] [#]
  32. Add unit with ID [#] to the specified control group. If it is a building, it will replace the entire control group. If the control group was a building and [#] is a unit, it will replace the building.
  33. -x [0-9] [#]
  34. Remove unit with ID [#] from the specified control group.
  35. -ORDERS
  36. BWAPI does not work through the games UI, but instead issues orders directly to units. For the most part these all start with a unit ID unless you're issuing an order to a control group. Change any of these to a control group order by starting with "o" and put the ID of your control group instead of an individual unit.
  37. Since this is text only to issue commands, you do so using the default hotkeys in Starcraft. The exception to this is the cancel command (like cancel training/constructing/morphing), which would normally be the escape key. Since the escape key cannot be typed in twitch chat, I've chosen to use the letter "x" in its place as x is not a hotkey anywhere in Starcraft by default.
  38. Below are all of the different formats for issuing commands. Note some commands may be able to be entered through multiple formats depending on what you want to target (i.e. attacking a unit vs attack moving).
  39. -[#] [a-z]
  40. -ID
  41. -hotkey
  42. EXAMPLE: "141 w" will upgrade Terran Infantry Weapons if 141 is an Engineering Bay.
  43. -[#] [a-z] [a-z]
  44. -ID
  45. -hotkey1
  46. -hotkey2
  47. EXAMPLE: "4 s d" if 4 is a Zerg Hatchery, will morph all attached Larva to drones.
  48. -[#] [a-z] [#]
  49. -ID
  50. -hotkey
  51. -ID2
  52. EXAMPLE: "83 g 96" if 83 is a worker and 96 is a mineral patch, the worker will go gather from the mineral patch.
  53. -[#] [a-z] [#] [#]
  54. -ID
  55. -hotkey
  56. -x
  57. -y
  58. EXAMPLE: "141 a 210 110" if 141 is a unit that can attack, then it will attack move to 210 110.
  59. -[#] [a-z] [a-z] [#] [#]
  60. -ID
  61. -hotkey1
  62. -hotkey2
  63. -x
  64. -y
  65. Example: "7 b p 118 23" if 7 is a Probe, it will try to build a Pylon at coordinate (118, 23).
  66. As stated above, adding an "o" at the start and making the ID between 0-9 will turn it into a control group command! If control group 0 is two zerglings and you want to order them to attack move to (76, 30), the command would be "o 0 a 76 30". Note behavior may not be exactly like a control group in the usual game - for example, if one Zergling is burrowed and the other isn't, you won't just have the unburrowed Zergling burrow. Instead, the burrowed Zergling will unburrow and the unburrowed Zerglign will burrow. This will probably be cleaned up in a later version.
  67.  
  68. Can Twitch beat Starcraft? Let's find out!
  69. ================VERSION HISTORY========================================
  70.  
  71. 1.0
  72. -Initial Release.
Advertisement
Add Comment
Please, Sign In to add comment