[AI] Making AI attack multiple bases

Level 7
Joined
Oct 19, 2024
Messages
55
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