• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 13:52
CET 19:52
KST 03:52
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
ByuL: The Forgotten Master of ZvT6Behind the Blue - Team Liquid History Book16Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Weekly Cups (Feb 9-15): herO doubles up0ACS replaced by "ASL Season Open" - Starts 21/0224LiuLi Cup: 2025 Grand Finals (Feb 10-16)44Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker15
StarCraft 2
General
ByuL: The Forgotten Master of ZvT Nexon's StarCraft game could be FPS, led by UMS maker Weekly Cups (Feb 9-15): herO doubles up How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? StarCraft 1 & 2 Added to Xbox Game Pass
Tourneys
Master Swan Open (Global Bronze-Master 2) LiuLi Cup: 2025 Grand Finals (Feb 10-16) WardiTV Team League Season 10 PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) $5,000 WardiTV Winter Championship 2026
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
Mutation # 513 Attrition Warfare The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth
Brood War
General
Ladder maps - how we can make blizz update them? TvZ is the most complete match up Brood War inspired Terran vs Zerg cinematic – feed Gypsy to Korea Which units you wish saw more use in the game?
Tourneys
[Megathread] Daily Proleagues Escore Tournament StarCraft Season 1 Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates Zealot bombing is no longer popular? Current Meta
Other Games
General Games
ZeroSpace Megathread Corso Formazione Insegnanti Yoga Nintendo Switch Thread What Game makes you happy and stress free? Diablo 2 thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Ask and answer stupid questions here! Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
Formula 1 Discussion 2024 - 2026 Football Thread
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Search For Meaning in Vi…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2246 users

Presenting the BW IRC Bot

Blogs > imp42
Post a Reply
imp42
Profile Blog Joined November 2010
398 Posts
Last Edited: 2016-12-14 21:56:16
December 11 2016 03:52 GMT
#1
The BW IRC Bot

Summary:
+ Show Spoiler +
A handy tool to quickly check/verify different values and stats of all kinds of Brood War units, weapons, and upgrades. It is available on IRC #BWAPI.


A few months ago, I developed a small script, mostly in Prolog, to facilitate looking up different stats I needed for bot development.

Here is a quick presentation of it:

Description

The BW IRC Bot lists the most important stats for all units used in competitive play of Brood War. It uses the original Brood War 1.16.1 as source (via BWAPI).

Listed information:

- Build order necessary to obtain a given unit
- Technology requirements for a given unit
- Type(s) of a given unit (organic, robotic, detector, burrowable, mechanical,spellcaster, etc.)
- Unit of a given type
- Mineral/Gas cost, build time, supply cost of units and upgrades
- Top speed, hit points, armor, energy, sight range, air weapon, ground weapon
- Basic damage, bonus damage, cooldown, damage factor, damage type, explosion type, minimum range, maximum range of weapons

Commands

!buildorder <unit>: retrieves the complete build order required to train given unit

!techreq <unit>: retrieves the direct technology requirement for given unit

!type <unit>: retrieves all types of given unit

!type <type>: retrieves all units with given type

!stats <unit>: retrieves mineral/gas cost, build time, and supply cost of given unit

!stats <upgrade>: retrieves mineral/gas cost, research time for all levels of the upgrade

!details <unit>: retrieves top speed, hit points, armor, energy, sight range, air weapon, ground weapon for a given unit

!details <weapon>: retrieves basic damage, bonus damage, cooldown, damage factor, damage type, explosion type, minimum range, maximum range for a given weapon

!help: shows all valid commands

!help <command>: shows how a specific command is used

Notes:
Naming convention for units, upgrades, weapons, types is the BWAPI name without the race prefix. This usually means the Brood War name with underscores instead of spaces.

Examples of valid names are:

supply_depot
vulture_spider_mine
ultralisk_cavern
ion_thrusters
infantry_armor
c_10_canister_rifle
mind_control
cloakable
siege_tank_tank_mode
siege_tank_siege_mode
(an exception, because the siege tank is modelled as two different units internally)

Usage Examples

!details command_center
[TopSpeed,Hitpoints,Armor,Energy,SightRange,SeekRange,AirWeapon,GroundWeapon]: [1.0,1500,1,0,320,0,none,none]

!stats marine
stats for marine are [minerals,gas,buildtime,(supply|level)] = [50,0,360,1]

!buildorder mutalisk
BO = [larva,drone,hatchery,spawning_pool,lair,spire,mutalisk]

!techreq ghost
techreq for ghost are [barracks,covert_ops,academy]

!type robotic
type of robotic is probe,shuttle,reaver,observer

!type reaver
type of reaver is robotic,mechanical

!stats ship_plating
stats for ship_plating are [minerals,gas,buildtime,(supply|level)] = [150,150,4000,1],[225,225,4480,2],[300,300,4960,3]

!details gauss_rifle
[Damage,Bonus,Cooldown,DmgFactor,DmgType,ExplosionType,minRange,maxRange,Air?,Ground?]: [6,1,15,1,normal,normal,0,128,true,true]

Conclusion
The bot usually hangs out as IMP_Bot in the #BWAPI IRC channel on irc.freenode.net. Drop by and say hi
PS: Artosis: next time you’re casting and you forget how much energy a queen has, just type “!details queen”

Credits
Thanks to everyone involved in developing BWAPI. The values used are extracted from the very source (the game itself) via BWAPI



*****
50 pts Copper League
nbaker
Profile Joined July 2009
United States1341 Posts
December 11 2016 08:42 GMT
#2
Whoah, cool thanks!
DarkNetHunter
Profile Joined October 2012
1224 Posts
December 14 2016 15:10 GMT
#3
Very cool, will bookmark it for usage sometime :D
Learn from the mistakes of others. You can't live long enough to make them all yourself.
Biolunar
Profile Joined February 2012
Germany224 Posts
December 14 2016 16:04 GMT
#4
On which server?
What is best? To crush the Zerg, see them driven before you, and hear the lamentations of the Protoss.
imp42
Profile Blog Joined November 2010
398 Posts
December 14 2016 21:55 GMT
#5
On December 15 2016 01:04 Biolunar wrote:
On which server?


this is on irc.freenode.net. I updated the blog post as well.
50 pts Copper League
Please log in or register to reply.
Live Events Refresh
Next event in 6h 8m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Grubby 3428
BRAT_OK 993
Harstem 355
elazer 150
SteadfastSC 100
UpATreeSC 86
MindelVK 16
StarCraft: Brood War
Britney 22873
Sea 3887
Horang2 2315
Shuttle 598
Aegong 48
Rock 22
Purpose 12
NaDa 11
Dota 2
Gorgc6072
Dendi624
Counter-Strike
fl0m4947
edward53
Heroes of the Storm
Liquid`Hasu329
Other Games
FrodaN1953
Beastyqt569
ceh9494
ArmadaUGS145
C9.Mang0130
Hui .117
Trikslyr65
KnowMe0
Organizations
Counter-Strike
PGL45499
StarCraft 2
angryscii 27
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• StrangeGG 64
• LUISG 26
• Reevou 7
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• Migwel
• LaughNgamezSOOP
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV366
League of Legends
• Jankos4842
• TFBlade883
Other Games
• imaqtpie728
• Shiphtur377
Upcoming Events
PiGosaur Cup
6h 8m
Replay Cast
14h 8m
WardiTV Winter Champion…
17h 8m
Replay Cast
1d 5h
PiG Sty Festival
1d 14h
Maru vs Bunny
Classic vs SHIN
The PondCast
1d 15h
KCM Race Survival
1d 15h
WardiTV Winter Champion…
1d 17h
OSC
1d 17h
Replay Cast
2 days
[ Show More ]
PiG Sty Festival
2 days
Clem vs Percival
Zoun vs Solar
Epic.LAN
2 days
Replay Cast
3 days
PiG Sty Festival
3 days
herO vs NightMare
Reynor vs Cure
CranKy Ducklings
3 days
Epic.LAN
3 days
Replay Cast
4 days
PiG Sty Festival
4 days
Serral vs YoungYakov
ByuN vs ShoWTimE
Sparkling Tuna Cup
4 days
Replay Cast
5 days
Replay Cast
5 days
Wardi Open
5 days
Monday Night Weeklies
5 days
Replay Cast
6 days
WardiTV Winter Champion…
6 days
Liquipedia Results

Completed

C-League Week 31
LiuLi Cup: 2025 Grand Finals
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

Escore Tournament S1: King of Kings
[S:21] ASL SEASON OPEN 1st Round
[S:21] ASL SEASON OPEN 1st Round Qualifier
Jeongseon Sooper Cup
Spring Cup 2026: China & Korea Invitational
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
PiG Sty Festival 7.0
WardiTV Winter 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.