• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 11:01
CET 17:01
KST 01:01
  • 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 ZvT25Behind the Blue - Team Liquid History Book17Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0241LiuLi Cup: 2025 Grand Finals (Feb 10-16)46Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker16
StarCraft 2
General
Behind the Blue - Team Liquid History Book ByuL: The Forgotten Master of ZvT Liquipedia WCS Portal Launched Kaelaris on the futue of SC2 and much more... How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game?
Tourneys
PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) How do the "codes" work in GSL? LiuLi Cup: 2025 Grand Finals (Feb 10-16)
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
The PondCast: SC2 News & Results Mutation # 513 Attrition Warfare Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth
Brood War
General
Do you consider PvZ imbalanced? Recent recommended BW games BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion CasterMuse Youtube
Tourneys
Escore Tournament StarCraft Season 1 [Megathread] Daily Proleagues Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Simple Questions, Simple Answers Zealot bombing is no longer popular? Fighting Spirit mining rates Current Meta
Other Games
General Games
Battle Aces/David Kim RTS Megathread Diablo 2 thread Nintendo Switch Thread ZeroSpace Megathread Path of Exile
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
Vanilla Mini Mafia TL Mafia Community Thread Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread Ask and answer stupid questions here! Things Aren’t Peaceful in Palestine
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
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
ASL S21 English Commentary…
namkraft
Inside the Communication of …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1758 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
Germany1780 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
Philippines596 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
Next event in 7h 59m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech129
Vindicta 33
trigger 27
EmSc Tv 22
gerald23 2
MindelVK 2
StarCraft: Brood War
Britney 38676
Calm 6467
Jaedong 1793
Horang2 1791
Larva 1079
Mini 586
Stork 546
Soma 432
actioN 385
hero 207
[ Show more ]
Zeus 191
Rush 176
PianO 130
Dewaltoss 109
Movie 107
Sharp 99
Barracks 85
Shine 80
JulyZerg 77
yabsab 47
Killer 46
soO 30
Hm[arnc] 27
HiyA 25
sorry 25
Rock 24
ToSsGirL 22
Sacsri 22
scan(afreeca) 20
NaDa 14
Terrorterran 13
Dota 2
Gorgc6616
qojqva1725
XcaliburYe101
LuMiX1
Counter-Strike
fl0m4200
shoxiejesuss1612
byalli1275
Super Smash Bros
Mew2King94
Heroes of the Storm
Khaldor547
Liquid`Hasu289
Other Games
Grubby4233
singsing2408
Liquid`RaSZi1759
B2W.Neo953
Sick185
ToD116
QueenE37
Organizations
Counter-Strike
PGL38940
StarCraft 2
WardiTV789
EmSc Tv 22
EmSc2Tv 22
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• HeavenSC 8
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos2423
Counter-Strike
• C_a_k_e 1186
Upcoming Events
Replay Cast
7h 59m
Replay Cast
16h 59m
Wardi Open
19h 59m
Monday Night Weeklies
1d
OSC
1d 7h
WardiTV Winter Champion…
1d 19h
Replay Cast
2 days
WardiTV Winter Champion…
2 days
The PondCast
3 days
Replay Cast
4 days
[ Show More ]
Korean StarCraft League
5 days
CranKy Ducklings
5 days
SC Evo Complete
5 days
Replay Cast
6 days
Sparkling Tuna Cup
6 days
uThermal 2v2 Circuit
6 days
Liquipedia Results

Completed

[S:21] ASL SEASON OPEN 1st Round
LiuLi Cup: 2025 Grand Finals
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
WardiTV Winter 2026
PiG Sty Festival 7.0
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

Acropolis #4 - TS5
Jeongseon Sooper Cup
Spring Cup 2026
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4 - TS6
Acropolis #4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
PGL Astana 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.