Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Execute AI Script
Execute AI Script
May 21 2008, 4:05 am
By: Pi1fer  

May 21 2008, 4:05 am Pi1fer Post #1



I have set up my map to have 2 computer opponents that are in seperate forces. Each has 2 bases, with factories, techbuilding, workers, minerals and geysers. What I basically want them to do is create units, research tech, and gather resources on their own. I also want them to launch strategic attacks on each other. If the computers lose their buildings, I want them to try to rebuild it. Most of the standard troops will be quickly replaced by hero units upon creation. In addition, I want the 2 computers to regularly send an attack group at each other sort of an Aeon of Strife style. At the same time, when they have too many units (200), they will attack the players or a certain location with the excessive units.


So how would I do all this? Which AI Script do I use? Would I have to use many seperate scripts? If I do use seperate scripts, will it interfere with each other?



None.

May 21 2008, 6:15 am rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

Heroes don't work with AI.

You can setup your own primitive AI with some randomization triggers (if the random number is 2, and the computer has 50 minerals, build a marine at a random barracks). Of course, you'll have to create that marine and center a location on that barracks.

What you want to to is largely impossible to do effectively. I suggest you do some research and testing in the various AI scripts, though you probably want the "Insane" AI.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

May 21 2008, 7:13 am NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Yeah, do yourself a favor and use standard units mainly instead of heroes.




May 21 2008, 7:50 am Pi1fer Post #4



Um... I made my map so that the player usese the regular units since I want the players to research for their abilities. Also I set it up so that the regular units have alot more hp, atk, def than the Hero units.

If i use the insane AI, will they use their heroes in random suicide missions?



None.

May 21 2008, 7:58 am rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

As I said before, Heroes don't work with AI. They're too "important". I could be mistaken, however, hence the last part which suggested you test the AI scripts.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

May 21 2008, 8:04 am Pi1fer Post #6



Is it possible for me to make it so that even hero units need to have researched for their abilities? Like Making Jim Raynor without the stim pack but it can be researched for him to use?



None.

May 21 2008, 3:22 pm NudeRaider Post #7

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

No. Either they have the ability or not. You cannot change it ingame.




May 22 2008, 10:36 pm ZzEzZ Post #8



some AI scripts do run for heros, like the "random suicide missions" one and Junk Yard Dog and stuff... ive had heros run around and be affected by these AI's and a few others also... mostly only the race specific AI triggers dont affect them

and it doesnt seem like itd be too hard to do what you want... like you an insane AI to make the comp research and make guys... then just do a 'center location, remove unit, create hero' trigger for the heros... then use the 'order: attack, move, or patrol' thing with a few randomized switches (and w/e other conditions u want) to make the AI attack and stuff...

i mean, it will take a lil xtra work, but it IS doable



None.

May 22 2008, 11:49 pm Vrael Post #9



For base building, Zoids 3v3 RPG (uber old map) did pretty well, it's UMS but the computers play like computers. I opened it up and the AI used was Zerg Campaign Medium, so you probably want to stick to the scripts with Campaign in them, if you want an effect like in that map.



None.

May 24 2008, 2:50 am pneumatic Post #10



Here's a good description of AIs:

http://battle.net/scc/faq/aiscripts.shtml

As for the Heroes problem, you could use non-heroes for everything in the game, but give the players higher armor and weapon upgrade levels than the computers. You can set the maximum upgrade limit so the computers can't research past a certain point.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-7-18. : 2: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: l)ark_ssj9kevin