Page 1 of 1

[triggers] more help with computer ai.

Posted: Sat Apr 18, 2009 9:36 am
by wildfire
i still can not get the computer ai to work right. would someone please help me out? if you would like a copy of my map to look at it just please give me a message or msg me on msn johnschall@live.com. i really need help with it. i cant get the computer to build units or anything... they just like to build hatcherys

Re: [triggers] more help with computer ai.

Posted: Sat Apr 18, 2009 10:01 am
by WedgeAntilles
What AI script are you using?

A basic computer AI script trigger looks like:

Players:
Player 1

Conditions:
Elapsed time is at least 0 game seconds.

Actions:
Execute AI script 'script' at 'location'

Re: [triggers] more help with computer ai.

Posted: Sat Apr 18, 2009 10:33 am
by Lavarinth
Make sure it is for the AI player, as well, and that you are playing on Use Map Settings.

Re: [triggers] more help with computer ai.

Posted: Sat Apr 18, 2009 6:54 pm
by wildfire
i have that but still the ai does nothing but mine and build hatcherys...

Re: [triggers] more help with computer ai.

Posted: Sun Apr 19, 2009 6:05 pm
by wildfire
ugh im so confused guys please help me out...

Re: [triggers] more help with computer ai.

Posted: Sun Apr 19, 2009 7:11 pm
by Thalraxal
Hm, this sounds kinda weird.  What AI Script is your Computer Player running?  I advise sticking with the Campaign AI scripts (Terran/Zerg/Protoss Campaign Easy/Medium/Difficult/Insane and the Expansion versions of those, depending on what you want).  It's been eons, but I seem to recall always having issues with the Custom Level AI scripts.  Also, if you're using an advanced editor, like X-Tra Edit or SCMDraft, don't use the Singleplayer Mission-specific AIs, (Terran 1-12, BW Protoss 1-8, etc), because they have very specific demands and can get cranky if they are not met.  Also, if you want your AIs to run really well, give them a big bundle of starting resources.  Those AIs really aren't that smart and could use all the help they can get.

Re: [triggers] more help with computer ai.

Posted: Sun Apr 19, 2009 7:20 pm
by wildfire
well... i have
player
play 4 (the computer)
the conditions
Elapsed time is at least 0 game seconds.
actions
Execute AI script 'zerg campaign insane' at 'purple zerg'


purple zerg is the base area of the zerg

i also have expansion campaign zerg town where the 2 expansion sites are

Re: [triggers] more help with computer ai.

Posted: Sun Apr 19, 2009 8:16 pm
by Thalraxal
Ah!  I think I see the problem now.

Area Town Scripts are for mining expansions.  All they'll do is mine and, well, build hatcheries.

Expansion AI Scripts are AI scripts that will use Brood War Units and abilities (Medics, Dark Archons, Lurkers, etc).  You'll want to run one of those from a location on top of the CC/Nexus/Hatchery-Lair-or-Hive in their main base.

Re: [triggers] more help with computer ai.

Posted: Mon Apr 20, 2009 6:47 pm
by wildfire
i have the expansion over the main base and the towns over the 2 expos. but still they do not build units in the main base area.

Re: [triggers] more help with computer ai.

Posted: Sun Apr 26, 2009 12:23 am
by Pr0nogo
Not sure if the OP still needs help., but...
player
play 4 (the computer)
the conditions
Elapsed time is at least 0 game seconds.
actions
Execute AI script 'zerg campaign insane' at 'purple zerg'
My trigger worked fine. They built units and buildings, as well as mined.

PLAYERS:
Player 4 (Zerg / Purple)

CONDITIONS:
Always

ACTIONS:
Execute A.I. script "Expansion Zerg Campaign Difficult" at "Zerg Main Base"
Execute A.I. script "Expansion Zerg Campaign Difficult" at "Zerg Mining Base 1"
Execute A.I. script "Expansion Zerg Campaign Difficult" at "Zerg Mining Base 2"
Modify Player 4's resources: Set to 4000 ore and gas

Try giving them Overlords sufficient for their supply count and giving them resources (see my trigger). I don't know exactly what happened here, but you can always e-mail me it or send it to me at Pronogo@hotmail.com. My MSN Messenger Handle is Pronogo. I'll open it in SCMDraft and see what I can do.