PDA

View Full Version : No AI players?


paulrames
02-18-2008, 10:25 AM
I would like to play a multiplayer LAN game with 2 humans and a computer AI player. I modified an existing map, configured the players as 2 human, 1 Computer, the rest rescueable, with the computer in one force and the humans in another. I added a new location, and set a trigger to always run AI script Custom Zerg Level at that location. I made sure the location was near the AI start location, and started the game with Use Map Settings, but the AI player has no starting base and doesn't participate in the game. What am I doing wrong? How do I get the AI player to be in the game?

Durandal
02-18-2008, 11:07 AM
Mind posting the map?

migidu
02-19-2008, 12:05 AM
you could just use the run ai script action with it under that computer player. oh, and since its ums, give that computer some starting units and resources and it should have a start location.

Durandal
02-19-2008, 12:55 AM
If you really read his post, you would realize he's already done this.

paulrames
02-19-2008, 11:22 AM
you could just use the run ai script action with it under that computer player. oh, and since its ums, give that computer some starting units and resources and it should have a start location.
I tried to do that - I added the "run AI script at location" for my AI player, and there are plenty of resources. The standard trigger gives every player 50 ore at game start, but when I start the map, there is no AI base or player at all. If the 2 humans ally, the game immediately ends in allied victory. I'm not sure how to give the AI units other than with triggers, which I can't seem to get to work. I will post the map next time.
Thanks!

paulrames
02-19-2008, 11:24 AM
Mind posting the map?
OK - Sorry but I'm new to this - How do I post it?
Thanks

Ling666
02-19-2008, 2:00 PM
If you really read his post, you would realize he's already done this.
I read it several times and saw no mention of him placing any units other than the start location for the computer player.

For UMS you need to have the base already placed in the campaign editor. For melees, the start location automatically makes a base appear, but for UMS you actually have to put the base in yourself.

OK - Sorry but I'm new to this - How do I post it?

Click "go advanced" to the right of "post quick reply". Scroll down to "manage attachments" and click on that. Then, the "browse" button, find the map, and click "upload".

Dem0nS1ayer
02-19-2008, 7:14 PM
Yeah, what Ling666 said. And also make sure that the AI location is on the CC, Nexus, or Hatchery that's closest to the resources.

paulrames
02-19-2008, 7:56 PM
I read it several times and saw no mention of him placing any units other than the start location for the computer player.

For UMS you need to have the base already placed in the campaign editor. For melees, the start location automatically makes a base appear, but for UMS you actually have to put the base in yourself.


Click "go advanced" to the right of "post quick reply". Scroll down to "manage attachments" and click on that. Then, the "browse" button, find the map, and click "upload".

Thanks for your help. I didn't see any obvious way to add a base, but I'll look again. In the meantime, here's the map, it's just an experiment to see if I could get it to work.

Durandal
02-19-2008, 8:15 PM
Well upon closer inspection of the map, yeah, you need to manually set up a starting base for teal, complete with workers, particularly given that this is a UMS map, and the buildings are not pre-placed.

migidu
02-20-2008, 5:23 AM
I read it several times and saw no mention of him placing any units other than the start location for the computer player.

i did tell him to give that computer starting units- which would ideally be 1 hall ,
4 workers. like what you get in melee maps.

computers and human players dont get the units if they dont have the start location right?

Ling666
02-20-2008, 6:55 PM
Humans can't play without a start location. Computers, idk, never needed to find out.

Dem0nS1ayer
02-20-2008, 8:58 PM
Computers do need a start location. I was looking at your triggers and I saw that you have 2 "Zerg Custom Level" AI scripts for p3 (for player 3 and force 1). Don't do that. Unless 1 of the 2 AI scripts is "Area Town", the computer player will get messed up, or something like that.

Here's an example of what you could do to make player 3 an AI player.

paulrames
02-22-2008, 11:04 AM
Thanks to everyone for the suggestions. I'll add the bases and see how it goes. Back to StarEdit...

paulrames
02-25-2008, 12:43 PM
OK - Just to close out this thread, the trick was to place the base and some workers for the AI player as suggested. After that, my script worked via the trigger (although even at insane level, the AI script doesn't seem as capable as when we play melee - wonder what level those AI players use?)
Thanks again to all responders.

migidu
02-25-2008, 10:51 PM
here's a link :

http://www.battle.net/scc/faq/aiscripts.shtml