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.
[2024-5-20. : 3:08 pm]
Sylph-Of-Space -- woah! nice! thank you!
[2024-5-20. : 4:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[2024-5-20. : 4:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[2024-5-20. : 3:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[2024-5-19. : 9:18 pm]
Ultraviolet -- 🔪🐈
[2024-5-19. : 12:34 pm]
NudeRaider -- curiosity kills the cat!
Please log in to shout.


Members Online: Roy, NudeRaider