• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:58
CEST 14:58
KST 21:58
  • 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] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists16[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0
Community News
2026 GSL Season 1 Qualifiers13Maestros of the Game 2 announced72026 GSL Tour plans announced14Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid24
StarCraft 2
General
Maestros of the Game 2 announced Team Liquid Map Contest #22 - The Finalists MaNa leaves Team Liquid 2026 GSL Tour plans announced Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament 2026 GSL Season 1 Qualifiers GSL CK: More events planned pending crowdfunding RSL Revival: Season 5 - Qualifiers and Main Event Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 522 Flip My Base The PondCast: SC2 News & Results Mutation # 521 Memorable Boss Mutation # 520 Moving Fees
Brood War
General
ASL21 General Discussion Data needed BGH Auto Balance -> http://bghmmr.eu/ Any progamer "explanation" videos like this one? ASL21 Strategy, Pimpest Plays Discussions
Tourneys
[ASL21] Ro16 Group D [Megathread] Daily Proleagues [ASL21] Ro16 Group C [ASL21] Ro16 Group B
Strategy
Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend? Fighting Spirit mining rates
Other Games
General Games
Dawn of War IV Nintendo Switch Thread Starcraft Tabletop Miniature Game General RTS Discussion Thread Battle Aces/David Kim RTS Megathread
Dota 2
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Canadian Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread YouTube Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story Cricket [SPORT]
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2223 users

Help with AI on custom map?

Forum Index > BW General
Post a Reply
Moletrap
Profile Blog Joined July 2007
United States1297 Posts
Last Edited: 2021-08-14 09:03:19
August 14 2021 08:56 GMT
#1
Hiii,

So I'm trying to make a custom map which is basically a brawl between T, Z, and P AIs with prearranged unit combos. I have finally figured out how to use triggers to get them to attack each other in the middle of the map. For testing purposes I'm only using marines, lings, and zealots.

BUT.... the other 2 always target the marines first! The zerglings keep running right past zealots, sometimes even when the zealots are attacking them, and going for the marine faction. And the zealots usually walk right past the zerglings and go for the marines, too, but sometimes they start fighting both. But I know they are set as enemies because once the marines are dead they turn on each other. Here's a replay of that happening.

Is this just something in the AI that makes them aim for ranged units first? This baffles me because when I play vs AI they seem to just attack what is in front of them without being strategic.

The only exception is when I arrange it so the marines arrive AFTER the zealots and zerglings are already in battle. In which case the Zs and Zs just fight to the death and ignore the marines until one side is dead and then the other side turns on the marines.

Is there some way to get the 3 factions to treat each other as equal threats?

I'm using ScmDraft 2 (Beta 0.9.10), and here's the code for my triggers if anyone wants to check them:
+ Show Spoiler +

Trigger("Player 1"){
Conditions:
Always();

Actions:
Set Alliance Status("Player 2", Enemy);
Set Alliance Status("Player 3", Enemy);
}

//-----------------------------------------------------------------//

Trigger("Player 2"){
Conditions:
Always();

Actions:
Set Alliance Status("Player 1", Enemy);
Set Alliance Status("Player 3", Enemy);
}

//-----------------------------------------------------------------//

Trigger("Player 3"){
Conditions:
Always();

Actions:
Set Alliance Status("Player 1", Enemy);
Set Alliance Status("Player 2", Enemy);
}

//-----------------------------------------------------------------//

Trigger("Player 1", "Player 2", "Player 3"){
Conditions:
Bring("Player 4", "Infested Kerrigan (Infested Terran)", "Beacon", At least, 1); ///I'm using walking the Kerrigan onto the Beacon as the trigger to start the fight

Actions:
Order("Player 1", "Any unit", "Anywhere", "Fight Zone", attack);
Order("Player 2", "Any unit", "Anywhere", "Fight Zone", attack);
Order("Player 3", "Any unit", "Anywhere", "Fight Zone", attack);
Center View("Fight Zone");
}

//-----------------------------------------------------------------//



Is there somewhere else where people talk about map editing tricks/techniques to ask this or other questions? I'm also trying to figure out if there's a way for human player to spawn units for the AI's in game, but getting them to fight properly is the most important thing!
aka Moletrap
LML
Profile Blog Joined March 2007
Germany1789 Posts
Last Edited: 2021-08-14 11:52:05
August 14 2021 11:48 GMT
#2
Hm, I was able to reproduce this.
A few things that I've tried:
1. Adding different units into the mix seems to change the fight dynamic only a little bit.
2. Issuing a patrol command instead of an attack command changed the whole fight from the Terran being a main focus (especially for the Zerg - despite Protoss and Zerg units seeing each other before seeing the Terran) to the Protoss and Zerg fighting and the Terran then coming in and dealing free damage and easily winning.

Maybe try just changing the issued command. If you have any questions regarding triggers feel free to message me.

And concerning map making: StarEdit.net is used for UMS maps. Additionally plenty of the map makers on the broodwarmaps.net Discord also know about triggers and especially about all kinds of things when it comes to creating melee maps.
LML
Moletrap
Profile Blog Joined July 2007
United States1297 Posts
August 15 2021 06:39 GMT
#3
Thanks!! I will play with the patrol command and see if that helps... or maybe switch between attack and patrol back and forth or something, idk.
aka Moletrap
Crimson)S(hadow
Profile Blog Joined July 2007
Philippines649 Posts
August 15 2021 10:31 GMT
#4
holy shit, it's moletrap the english caster from 10 years ago
"It's the end of the BW era which i devoted everything to for 10 years. I tried playing sc2, but my BW memories run too deep; I felt like I was playing an entirely different game" -ToSsGirL
alexdinev
Profile Joined March 2024
1 Post
March 12 2024 14:30 GMT
#5
--- Nuked ---
gregbowers
Profile Joined March 2024
2 Posts
March 14 2024 09:03 GMT
#6
--- Nuked ---
Please log in or register to reply.
Live Events Refresh
RSL Revival
10:00
Season 5 Korea Qualifier
Classic vs PercivalLIVE!
Ryung 1210
CranKy Ducklings288
CranKy Ducklings SOOP220
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Ryung 1210
Lowko347
SortOf 119
SpeCial 109
StarCraft: Brood War
Britney 62790
Calm 6838
Sea 3431
Jaedong 2694
Horang2 1671
Mini 541
Soma 433
Hyuk 381
Stork 381
BeSt 340
[ Show more ]
Light 327
Larva 297
Rush 256
Snow 245
actioN 198
ggaemo 181
Last 165
Hyun 105
Soulkey 88
Pusan 88
Sacsri 81
hero 81
Dewaltoss 75
Mind 74
ToSsGirL 70
Sharp 69
Backho 51
sSak 39
Killer 36
[sc1f]eonzerg 33
IntoTheRainbow 30
zelot 29
sorry 27
scan(afreeca) 24
soO 23
Hm[arnc] 21
Shinee 20
HiyA 16
Movie 13
yabsab 12
Shine 8
Icarus 6
Terrorterran 2
Dota 2
Gorgc4800
qojqva653
Counter-Strike
olofmeister1600
byalli508
Super Smash Bros
Mew2King135
Other Games
singsing1840
B2W.Neo749
hiko421
Mlord281
DeMusliM210
XaKoH 181
Pyrionflax177
KnowMe131
Trikslyr129
Liquid`VortiX60
RotterdaM58
QueenE55
Liquid`LucifroN54
NotJumperer2
Organizations
Dota 2
PGL Dota 2 - Main Stream12997
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• iHatsuTV 4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• TFBlade1572
• Jankos1328
Upcoming Events
Replay Cast
11h 2m
The PondCast
21h 2m
KCM Race Survival
21h 2m
WardiTV Map Contest Tou…
22h 2m
Gerald vs herO
Clem vs Cure
ByuN vs Solar
Rogue vs MaxPax
ShoWTimE vs TBD
OSC
1d 2h
CranKy Ducklings
1d 11h
Escore
1d 21h
RSL Revival
2 days
Replay Cast
2 days
WardiTV Map Contest Tou…
2 days
[ Show More ]
Universe Titan Cup
2 days
Rogue vs Percival
Ladder Legends
3 days
uThermal 2v2 Circuit
3 days
BSL
3 days
Sparkling Tuna Cup
3 days
WardiTV Map Contest Tou…
3 days
Ladder Legends
4 days
BSL
4 days
Replay Cast
4 days
Replay Cast
4 days
Wardi Open
4 days
Afreeca Starleague
4 days
Soma vs TBD
Monday Night Weeklies
5 days
Replay Cast
5 days
Afreeca Starleague
5 days
TBD vs YSC
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-04-20
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
WardiTV TLMC #16
Nations Cup 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W4
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
RSL Revival: Season 5
2026 GSL S1
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
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.