Staredit Network

Staredit Network -> UMS Assistance -> I need help with computer AI!
Report, edit, etc...Posted by chosi on 2006-07-26 at 17:26:58
Hey all, I'm REALLY new to mapmaking.

Anyway, I want to watch two comps under the Campaign Insane AI fight. Can anyone give me detailed instructions how to do so? I want to be able to see the whole map, or atleast have them share vision with me.

I tried only having a start location for me, and set them under insane AI, but I still spawned with a hatchery and 4 drones. Also, I tried running the AI script for making them share vision with me, but it didnt work

Plz help!!!
Report, edit, etc...Posted by TheHappyHobo on 2006-07-26 at 17:50:02
Well, first things first, when you go to play the map, find the selection that says "Melee" and change it to "Use Map Settings." This is of utmost importance.

Now that that's settled, let's work on the triggers, shall we?
Computers won't fight each other; they're always allied. So, we'll have to unally them, won't we?

Trigger
Description:
Unally Computers
Players:
¤ Computer 1
Conditions:
¤ Always
Actions:
¤ Set Alliance Status: Set "Computer 2" to Enemy
¤ Preserve Trigger


Then,


Trigger
Description:
Unally Computers
Players:
¤ Computer 2
Conditions:
¤ Always
Actions:
¤ Set Alliance Status: Set "Computer 1" to Enemy
¤ Preserve Trigger


Now, we want you to see the ENTIRE map, right? Well, I'd suggest just having them ally vision with you and then afterwards just use "Black Sheep Wall," but you can go through the annoying task of placing Map Revealers everywhere. (StarForge and SCMDraft2, however, will do that for you in a pinch, but I wouldn't recommend DLing them just yet.)
But, to have them ally vision with you:


Trigger
Description:
Ally Vision
Players:
¤ Computer 1
¤ Computer 2
Conditions:
¤ Always
Actions:
¤ Run AI Script: Turn ON Shared Vision for Player 1
¤ Preserve Trigger

(Note: You should use this trigger no matter what, otherwise you won't be able to see cloaked units.)

Now, run the AI scripts for the computers' bases:


Trigger
Description:
Computer AI
Players:
¤ Computer 1
Conditions:
¤ Always
Actions:
¤ Run AI Script at Location: Expansion (Computer's Race) Campaign Insane at (location of computer's main building.)
¤ Preserve Trigger



Trigger
Description:
Computer AI
Players:
¤ Computer 2
Conditions:
¤ Always
Actions:
¤ Run AI Script at Location: Expansion (Computer's Race) Campaign Insane at (location of computer's main building.)
¤ Preserve Trigger


Now, you MUST place the units and minerals for each computer player. They cannot just have a start location, at least not for a Use Map Settings map. Also, go into the "Forces" menu and deselect Random Start Location for best results (Although it shouldn't really matter.) One last thing: Go into triggers and under All Players, delete the Defeat and Victory triggers (not the Give 50 Minerals one). This way, you won't lose immediately.
I believe that should cover it... Now, you should be able to just sit back, relax, and enjoy the show cool1.gif
I'll make up a quick test map and post it, too, in case you're still foggy on the details.
Report, edit, etc...Posted by Richan on 2006-07-26 at 19:12:36
It won't work. Insane AI needs buildings to create units. If you want them to build up an entire base you must use Custom Level AI.

BTW...

QUOTE
Description:
Ally Vision

Players:
¤ Computer 1
¤ Computer 2

Conditions:
¤ Always

Actions:
¤ Run AI Script: Turn ON Shared Vision for Player 1
¤ Preserve Trigger


By doing that, it'll be the computers who'll see what you see. closedeyes.gif Let's correct it:

QUOTE
Description:
Ally Vision

Players:
¤ Yourself

Conditions:
¤ Always

Actions:
¤ Run AI Script: Turn ON Shared Vision for 'Computers'

(You don't need preserve trigger)

See ya! wink.gif

Richan
Report, edit, etc...Posted by KABOOM on 2006-07-27 at 18:19:02
also make sure that when u start the game ur not on random or else the game will automatically give you starting units at your start location. you can avoid that by forcing that human player to be one of the 3 races by player settings option
Report, edit, etc...Posted by -bilal92- on 2006-07-27 at 18:25:27
O, wait nvm...sry thought you were talking bout where to run the script
Next Page (1)