[triggers] more help with computer ai.

Post Reply
User avatar
wildfire
Terran Refinery Attendant
Terran Refinery Attendant
Posts: 29
Joined: Wed Apr 01, 2009 3:10 pm

[triggers] more help with computer ai.

Post 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
WedgeAntilles

Re: [triggers] more help with computer ai.

Post 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'
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: [triggers] more help with computer ai.

Post by Lavarinth »

Make sure it is for the AI player, as well, and that you are playing on Use Map Settings.
- - Lavarinth
Campaign Creations Administrator
User avatar
wildfire
Terran Refinery Attendant
Terran Refinery Attendant
Posts: 29
Joined: Wed Apr 01, 2009 3:10 pm

Re: [triggers] more help with computer ai.

Post by wildfire »

i have that but still the ai does nothing but mine and build hatcherys...
User avatar
wildfire
Terran Refinery Attendant
Terran Refinery Attendant
Posts: 29
Joined: Wed Apr 01, 2009 3:10 pm

Re: [triggers] more help with computer ai.

Post by wildfire »

ugh im so confused guys please help me out...
User avatar
Thalraxal
Protoss Stargate Concierge
Protoss Stargate Concierge
Posts: 1212
Joined: Sun Aug 12, 2007 12:42 pm
Location: Ontario, Canada

Re: [triggers] more help with computer ai.

Post 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.
User avatar
wildfire
Terran Refinery Attendant
Terran Refinery Attendant
Posts: 29
Joined: Wed Apr 01, 2009 3:10 pm

Re: [triggers] more help with computer ai.

Post 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
Last edited by wildfire on Sun Apr 19, 2009 7:41 pm, edited 1 time in total.
User avatar
Thalraxal
Protoss Stargate Concierge
Protoss Stargate Concierge
Posts: 1212
Joined: Sun Aug 12, 2007 12:42 pm
Location: Ontario, Canada

Re: [triggers] more help with computer ai.

Post 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.
User avatar
wildfire
Terran Refinery Attendant
Terran Refinery Attendant
Posts: 29
Joined: Wed Apr 01, 2009 3:10 pm

Re: [triggers] more help with computer ai.

Post 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.
User avatar
Pr0nogo
Protoss Zealot Practice Dummy
Protoss Zealot Practice Dummy
Posts: 874
Joined: Wed Apr 08, 2009 3:59 pm
Contact:

Re: [triggers] more help with computer ai.

Post 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.
Post Reply