• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:21
CET 00:21
KST 08:21
  • 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
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy5ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises0Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool42Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
What mix of new & old maps do you want in the next ladder pool? (SC2) Weekly Cups (March 16-22): herO doubles, Cure surprises Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Potential Updates Coming to the SC2 CN Server Weekly Cups (March 2-8): ByuN overcomes PvT block
Tourneys
World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament WardiTV Team League Season 10 KSL Week 87
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
Soulkey's decision to leave C9 BGH Auto Balance -> http://bghmmr.eu/ JaeDong's form before ASL [ASL21] Ro24 Preview Pt1: New Chaos ASL21 General Discussion
Tourneys
[Megathread] Daily Proleagues ASL Season 21 LIVESTREAM with English Commentary [ASL21] Ro24 Group A [BSL22] Open Qualifiers & Ladder Tours
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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 Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books Movie Discussion! [Manga] One Piece
Sports
2024 - 2026 Football Thread Cricket [SPORT] Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
U4GM Tips Counter Enemy Gadgets Fast in Black Ops rsvsr How to Keep Reward Chains Rolling in Monopol u4gm What to Do First in MLB The Show 26 Spring
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1549 users

AI Question

Forum Index > BW General
Post a Reply
linestein
Profile Blog Joined June 2018
United States210 Posts
November 18 2019 21:36 GMT
#1
Hey, I'm designing a Starcraft: Remastered RPG for 2 players.

So far it's coming along pretty well although the editor is a little clunky!

I'm trying to get an AI running on the map. So far this is what I've used:

Comment("[000] Gestalt AI");
Run AI Script("Zerg Campaign Insane");
Run AI Script At Location("Zerg Custom Level", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 9 - Town F", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 9 - Town A", "Anywhere");

However, the AI isn't mining and doesn't seem extremely functional yet. Does anyone have general AI advice for constructing a basic UMS AI.

Also, what would it take to incorporate an AI like what's seen in tournaments? Is this at all feasible? I think it would be cool to use a full AI implement. Any advice in this regard is appreciated.
"You can wish to be rich, you can wish to be tall. You can wish away the haters, you just gimme a call" ---Will Smith & DJ Khaled "Friend Like Me (End Title)"
Freakling
Profile Joined October 2012
Germany1533 Posts
November 18 2019 23:59 GMT
#2
There are standard AI scripts (such as you are using in those triggers). These can be run with Remastered.
Then there are custom AI scripts that you can write yourself, but that would actually require a patch launcher to "inject" them into the game. This requires some modding tools and can only be done with patch 1.16 pre-remastered BW.
Thirdly there are external AIs that interact with the game via the BWAPI, these are the ones that the tournaments are running for. BWAPI is also restricted to 1.16 at the moment.
What exactly you need depends on the kind of UMS you want to run. BWAPI would almost certainly be over the top though.
It's hard to give you any specific advice without knowing what your map actually looks like and what you want to achieve.
Insane AI scripts, and any campaign AI scrips in general, need to be run on a location around the AI player's base to function properly though. "Anywhere" does generally not work. You can also only run one "main script" per player. There are "area town scripts" that you can run on additional bases though.
If you want to know what different AI scripts do you need a script editor.
Check out Staredit.net for resources on UMS map making.
AntiHack
Profile Joined January 2009
Switzerland553 Posts
Last Edited: 2019-11-19 00:43:17
November 19 2019 00:40 GMT
#3
On November 19 2019 06:36 linestein wrote:
Hey, I'm designing a Starcraft: Remastered RPG for 2 players.

So far it's coming along pretty well although the editor is a little clunky!

I'm trying to get an AI running on the map. So far this is what I've used:

Comment("[000] Gestalt AI");
Run AI Script("Zerg Campaign Insane");
Run AI Script At Location("Zerg Custom Level", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 9 - Town F", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 9 - Town A", "Anywhere");

However, the AI isn't mining and doesn't seem extremely functional yet. Does anyone have general AI advice for constructing a basic UMS AI.

Also, what would it take to incorporate an AI like what's seen in tournaments? Is this at all feasible? I think it would be cool to use a full AI implement. Any advice in this regard is appreciated.

The tournament (skirmish) AI is not implement in the editor to work in UMS mode unfortunately.

The campaign AI is very much a cheating one in terms of resources so you might try to give those AIs a flood of money and see what happens

Edit: please share your RPG when you're done with it, I'm looking forward to play and replay any rpg using Carbot mod :D
"I am very tired of your grammar errors" - Zoler[MB]
linestein
Profile Blog Joined June 2018
United States210 Posts
November 19 2019 04:57 GMT
#4
On November 19 2019 09:40 AntiHack wrote:
Show nested quote +
On November 19 2019 06:36 linestein wrote:
Hey, I'm designing a Starcraft: Remastered RPG for 2 players.

So far it's coming along pretty well although the editor is a little clunky!

I'm trying to get an AI running on the map. So far this is what I've used:

Comment("[000] Gestalt AI");
Run AI Script("Zerg Campaign Insane");
Run AI Script At Location("Zerg Custom Level", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 9 - Town F", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 9 - Town A", "Anywhere");

However, the AI isn't mining and doesn't seem extremely functional yet. Does anyone have general AI advice for constructing a basic UMS AI.

Also, what would it take to incorporate an AI like what's seen in tournaments? Is this at all feasible? I think it would be cool to use a full AI implement. Any advice in this regard is appreciated.

The tournament (skirmish) AI is not implement in the editor to work in UMS mode unfortunately.

The campaign AI is very much a cheating one in terms of resources so you might try to give those AIs a flood of money and see what happens

Edit: please share your RPG when you're done with it, I'm looking forward to play and replay any rpg using Carbot mod :D


I've set the AI script to every AI from mission 10:

Comment("[000] Gestalt AI");
Run AI Script At Location("Expansion Zerg Campaign Insane", "Anywhere");
Run AI Script At Location("Zerg Campaign Insane", "Anywhere");
Run AI Script At Location("Zerg Campaign Area Town", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 10 - Town A", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 10 - Town B", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 10 - Town C", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 10 - Town D", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 10 - Town E", "Anywhere");
Run AI Script At Location("Brood Wars Zerg 10 - Town F", "Anywhere");
Set Resources("Player 7", Set To, 100000, ore and gas);
Set Resources("Player 6", Set To, 100000, ore and gas);
Set Resources("Player 5", Set To, 100000, ore and gas);

This doesn't seem to do anything but the AI will move its overlords around
"You can wish to be rich, you can wish to be tall. You can wish away the haters, you just gimme a call" ---Will Smith & DJ Khaled "Friend Like Me (End Title)"
Peelster1
Profile Joined May 2020
2 Posts
Last Edited: 2024-03-07 03:34:33
March 07 2024 03:33 GMT
#5
"Anywhere" does generally not work. You can also only run one "main script" per player. There are "area town scripts" that you can run on additional bases though.

linestein, I do hope you have figured this out by now as the topic is 5 years old, but it seems like in your reply you glossed over this quote from AntiHack as you were still attempting to use "Anywhere" I also wanted to add additional info about this for others who find this topic. What first needs to happen is you make Locations visible on your map, and you use an existing Location or create a (or multiple) new Location box(es) on the map and name it whatever you like. In addition, you should only use one AI script per AI player, but you may use as many Area Town scripts as you like. For example, you should not use both "Expansion Zerg Campaign Insane" and "Zerg Campaign Insane" and/or "Zerg Custom Level" at the same time. You should pick only one of those. I believe "Expansion" is for Brood Wars, although I could be mistaken on that part. Campaign AI do not expand to other bases, where Custom / Melee and Insane AI do. (The game prioritizes "Insane" in a "Campaign Insane" AI.) Additionally, "Campaign" AI do not have scripted rushes, where Custom / Melee AI have rushes that it will only use if it thinks it gain defeat the player and will not if outnumbered, and Insane AI will always attack.

Basic info typed up by Blizzard that I consider a must read. Melee AI being intended standard matches and not Use Map Settings.
http://classic.battle.net/scc/faq/aiscripts.shtml
http://www.staredit.net/topic/5517/#9
Advanced info about each AI including Area Town here: The Yandex link is a .rar file containing .txt of the AI scripts. Can be a little hard to read at first, but you will learn what the AI build orders are for each AI.
http://www.staredit.net/topic/18352/

In your above example, I would suggest naming the main base and each Area Town after creating those location boxes on the map. Your map being an RPG, you may not want the AI to expand to take other bases. Also note that different difficultly levels have different build orders. In the example below: I first would create 7 location boxes on the map. I have named each town by the name of the town script to make it more clear which town to use. You may name them whatever you wish on the Location screen, and do not need to include "name". I just did that here to distinguish the difference between the name of the script and the name of the town. I have used Difficult AI instead of Insane AI here as this is for an RPG, but if you want the player to be rushed, feel free to use. Here we have a main base, and 7 area towns. The main base may also be one of those towns for a total of 7 towns instead of 8, if you wish. I misunderstood and there are only 6 area towns, (including or not excluding the main base) delete line 2 as you do not need to run two Area Town scripts at the same location.

Run AI Script At Location("Expansion Zerg Campaign Difficult", "Main Base Name");
Run AI Script At Location("Zerg Campaign Area Town", "Area Town Name");
Run AI Script At Location("Brood Wars Zerg 10 - Town A", "Town A Name");
Run AI Script At Location("Brood Wars Zerg 10 - Town B", "Town B Name");
Run AI Script At Location("Brood Wars Zerg 10 - Town C", "Town C Name");
Run AI Script At Location("Brood Wars Zerg 10 - Town D", "Town D Name");
Run AI Script At Location("Brood Wars Zerg 10 - Town E", "Town E Name");
Run AI Script At Location("Brood Wars Zerg 10 - Town F", "Town F Name");

The resource lines are mostly unrelated to the AI script, however if an AI is provided with resources from the start, it will be more likely to build and I suggest leaving them in, however it is not required. The problem in this case was not the lack of resources, but rather the use of "Anywhere".
Please log in or register to reply.
Live Events Refresh
Next event in 10h 39m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft326
elazer 156
CosmosSc2 52
Codebar 18
Nina 1
StarCraft: Brood War
Artosis 584
GuemChi 450
Stork 63
LancerX 26
NaDa 8
Dota 2
monkeys_forever308
Counter-Strike
taco 1
Super Smash Bros
C9.Mang0137
AZ_Axe84
PPMD27
Liquid`Ken7
Other Games
summit1g8662
Grubby3393
shahzam665
ToD158
ZombieGrub105
Maynarde76
Trikslyr57
UpATreeSC32
JuggernautJason11
deth6
Organizations
Other Games
gamesdonequick628
Dota 2
PGL Dota 2 - Main Stream47
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Hupsaiya 194
• davetesta23
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Eskiya23 27
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Other Games
• imaqtpie1092
• Scarra632
Upcoming Events
Sparkling Tuna Cup
10h 39m
Afreeca Starleague
10h 39m
Soulkey vs Ample
JyJ vs sSak
Replay Cast
1d 9h
Afreeca Starleague
1d 10h
hero vs YSC
Larva vs Shine
Kung Fu Cup
1d 11h
Replay Cast
2 days
KCM Race Survival
2 days
The PondCast
2 days
WardiTV Team League
2 days
Replay Cast
3 days
[ Show More ]
WardiTV Team League
3 days
RSL Revival
4 days
Cure vs Zoun
herO vs Rogue
WardiTV Team League
4 days
Platinum Heroes Events
4 days
BSL
4 days
RSL Revival
5 days
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
5 days
BSL
5 days
Replay Cast
6 days
Afreeca Starleague
6 days
Light vs Calm
Royal vs Mind
Wardi Open
6 days
Monday Night Weeklies
6 days
Liquipedia Results

Completed

Proleague 2026-03-22
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
Proleague 2026-03-23
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

2026 Changsha Offline CUP
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
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.