• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[AI] Making AI attack multiple bases

Level 8
Joined
Oct 19, 2024
Messages
57
Greetings. I've been making a map where the player starts with an AI ally with several enemy bases. I'm interested in making the AI's attack each other accordingly using JASS (mainly because if an AI goes down I want them to keep attacking any other survivors), but I've got no idea on how to do it. Does anybody know if there is any command/script that makes the AI call SuicideOnPlayer on a player group instead of an single one? Or do you have to use a different code/script it with triggers?

(Also, as a side note, could anybody please tell me where can I find the AI scripts Blizzard uses in their campaigns? I've wanted to check them more than once, but I couldn't find them in the game files.)
 
Natively if your script says "attack player 1" and player 1 has been eliminated, the AI should continue their attack waves against a random enemy player, so if you simply use the regular scripts it'll work just as fine

As for Blizzard scripts, I use the MPQ browser of Magos Model Editor, but it needs the .mpq files in the same directory, don't really know how it's done since CASC format
 
Back
Top