Staredit Network > Forums > Modding Assistance > Topic: Creating custom AI for sc2-coop-like map.
Creating custom AI for sc2-coop-like map.
Jul 21 2018, 12:05 pm
By: SPyro_Malin  

Jul 21 2018, 12:05 pm SPyro_Malin Post #1



Hello, i intend on creating couple of custom AIs for my map. Nothing fancy really, just some tweaked build orders, forcing ai to actually upgrade over time (it would be awesome if i could force them to upgrade to 4/4/4). I would like to have 3 opponnets: 1 with base that will build armies from time to time and attack with waves of my choice and rebuild buildings, 2 that will just have units on map and not attack with them, just defending couple of spots but upgrade units over time and repair units and buildings with scv, 3 with no base (well only buildings that will allow it to upgrade) it will get some units with triggers from time to time, which i would like to attack me but not just like sending them with order: patrol, rather like AI do this: travveling and stopping before reaching my base and waiting for most units to group up and then attack (can i do this with AI harass here?).
I would like to have scripts for every race with couple of variations.
I can't find it with google, I really tried. Can someone help me making mini mod like this?
Or maybe i can just force AI to upgrade with triggers?
Or maybe ai that will make upgrades to 3/3/3 but does not attack with preplaced units already exists among those made by Blizzard?

Post has been edited 4 time(s), last time on Jul 21 2018, 12:22 pm by SPyro_Malin.



None.

Jul 21 2018, 1:43 pm UEDCommander Post #2

Sic Semper Tyrannis

First of all, what "SC2 coop like" has to do with the topic? Coop mode doesn't have macro AI.
Second of all, 4/4/4 upgrades are doable (i think StarEdit/SCMDraft's tools are enough for that) but automatically disregard usage of excisting Blizz scripts.
Third of all, you will need certain tools to work on that, in your case it's PyMS. If we're talking about SCR, you will also need Samase.
As for actual scripts:

1) For the attacker with base, it will be sufficient to, using PyAI (part of PyMS), open any existing Blizz script which begins with this:
Quote
start_campaign
wait(1)
start_town
(better BW ones) and work with it. I think it's pretty easy to understand how to change attack waves and add upgrades from and example (if not, feel free to ask), as for rebuilding - just build requests basically (the ones excisting in the beginning of each script).

2) Basically same as 1, cut out attack waves. Not sure what you ment by "couple of spots" though.

3) Take any campaign script as example like in 1, cut out any build requests for any buildings you don't need. You will have to calculate precise moment for trigger to spawn units just before attack_add requests start firing. Alternatively, use action create_unit - example for it's usage can be found in Brood Wars Terran 2 - Town A script. This action requiers XY coordinates instead of location - they can be taken via SCMDraft by pointing cursor on needed position and writing down two numbers in bottom-left corner of screen - theese will be your coordinates.

Post has been edited 2 time(s), last time on Jul 21 2018, 4:49 pm by UEDCommander.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:27 am]
Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
[2026-7-17. : 2:58 pm]
Ultraviolet -- Symmetry
Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
fr fr
[2026-7-17. : 2:39 am]
Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
[2026-7-16. : 6:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
[2026-7-16. : 6:26 am]
NudeRaider -- I mean yes, maps - through EUDs - were theoretically able to do that as well, but that was patched quickly.
[2026-7-16. : 6:25 am]
NudeRaider -- Symmetry
Symmetry shouted: Ohhh imagine a SC map that could delete itself
not the map, the editor
[2026-7-16. : 2:28 am]
Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
[2026-7-16. : 2:28 am]
Symmetry -- Ohhh imagine a SC map that could delete itself
[2026-7-15. : 8:51 pm]
NudeRaider -- Symmetry
Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
[2026-7-15. : 4:10 am]
Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
Please log in to shout.


Members Online: O)FaRTy1billion[MM]