Staredit Network

Staredit Network -> UMS Assistance -> Computer Player AI Script
Report, edit, etc...Posted by Templar on 2006-08-30 at 22:36:26
Hello again,
I am trying to make a computer player run an AI script "expansion terran difficult" (something like that) and the only thing the computer player does is mine minerals once, then all scv's except one, stop mineing. then after a few secconds the scv that was still mining goes arround and builds a supply depot and after that nothing happens at all. i want the computer to play like they do in a melee game.
Please help me with this problem!
thanks
Report, edit, etc...Posted by mayonnaise on 2006-08-30 at 22:48:21
I think, but I am not sure, you have to preserve trigger.
Report, edit, etc...Posted by Templar on 2006-08-30 at 22:56:48
QUOTE(mayonnaise @ Aug 30 2006, 04:47 PM)
I think, but I am not sure, you have to preserve trigger.
[right][snapback]553789[/snapback][/right]

I tried that, it didnt work either
Report, edit, etc...Posted by Kyuubi. on 2006-08-30 at 23:24:26
you don't need to preserve trigger it, it should only run once for each player/race. you should put a location around the computers main base and stretch it out to the resources. here's a link for more info on ai scripts. what did you put in the triggers for it?

http://www.staredit.net/index.php?tutorial=22
Report, edit, etc...Posted by Templar on 2006-08-31 at 00:29:01
QUOTE(Kyuubi. @ Aug 30 2006, 05:24 PM)
you don't need to preserve trigger it, it should only run once for each player/race. you should put a location around the computers main base and stretch it out to the resources.  here's a link for more info on ai scripts.  what did you put in the triggers for it?

http://www.staredit.net/index.php?tutorial=22
[right][snapback]553800[/snapback][/right]

in triggers i put:
Players:
"2"
Conditions:
"Always"
Actions:
"run ai script for player 2 at location"

(Yes, i made sure player 2 was set as a computer player.)
[EDIT]
ok i did some testing and got slightly better results.
however every ai script ive tried, the computer player never builds SCV's and just works wit hthe 4 it starts with. most ai scripts the computer player builds a supply depot and thne keeps mineing. im gona keep testinf different ai scripts
( i want the computer play to be really hard to beat )
Report, edit, etc...Posted by Kyuubi. on 2006-08-31 at 01:18:29
which ai script?if you want computers to play its hardest, you should set it to insane ai script. maybe it can't build an scv in the beginning is because it has no minerals to build it with? in the map, you should give all palyers an even playing field, like have 50 starting minerals like in melee maps. i'm not sure if this applies or not, but hope it helps.

QUOTE
With the exception of Area Town scripts, only one Campaign AI script should be run for each player. Each Campaign AI Script is associated with a Location. This Location must be centered near a source of Minerals and a source of Vespene Gas.
Campaign AI scripts are designed to start with an advantage over the player in initial resources and units. They will attempt to wear down players over time. They do not expand aggressively and perform best if supplied with enough starting resources to build through the technology tree (roughly 6000 each of gas and minerals).

Custom AI scripts are designed to start with the same resources as other players. They expand to gain new resources and attack players aggressively. Only one Custom AI script should be run for each player. They should not be used with Campaign AI scripts.
Report, edit, etc...Posted by Killer_Kow(MM) on 2006-08-31 at 07:43:59
If you're using difficult or lower, I'd suggest preplacing buildings and units. If you're using insane, I would suggest preplace defense (meaning, about 12 missile turrets, 3 bunkers, a couple siege tanks, and marines and firebats to fill the bunkers). Also note, terran AI is the slowest AI of the three races, so I don't like to use it.

That aside, here is how to make an AI script work properly:

1) Place units for your computer player.

2) Place a command-center sized location over its command center.

3) Do this trigger:

Trigger
Players:
¤ 2
Conditions:
¤ Always/Whatever condition you want your computer to start on
Actions:
¤ Run AI script X at Command Center Location


That should work right.
Report, edit, etc...Posted by Felino on 2006-09-01 at 02:52:15
Worked for me
Next Page (1)