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.
[05:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[04:31 pm]
Zoan -- where's the option to delete my account
[04:30 pm]
Zoan -- goodbye forever
[04:30 pm]
Zoan -- it's over, I've misclicked my top right magic box spot
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
Please log in to shout.


Members Online: Roy, Wing Zero, Revenant