How do you make the computer player actually do anything?

Discussion in 'Maps and Replays' started by nx130, Dec 27, 2007.

How do you make the computer player actually do anything?

Discussion in 'Maps and Replays' started by nx130, Dec 27, 2007.

  1. nx130

    nx130 New Member

    Joined:
    Nov 14, 2007
    Messages:
    38
    Likes received:
    0
    Trophy points:
    0
    Ok heres how its working for me I set up the enemy base on the map editor but when I actaully start playing the map the computer player does not do anything. An example of this is when i build a start location for a computer player and then they do not build.... anything.... if i put a drone or scv or probe next to resources they just sit there and do nothing. How do i make the computer player in short actually play the game???????


    btw belated merry x-mas every 1
     
  2. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    Re: How do you make the computer player actually do anything??????

    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.

    If you would like further information detailing the use of AI scripts, please have a look at Blizzard's official StarCraft Campaign Editor F.A.Q page located here.
     
  3. nx130

    nx130 New Member

    Joined:
    Nov 14, 2007
    Messages:
    38
    Likes received:
    0
    Trophy points:
    0
    Re: How do you make the computer player actually do anything??????

    how do i set AI scripts all i can find is in the trigger editor and all that lets me set is "random suicide missions" ; "Strategic suicide missions" and some thing about switching the player to rescuable neutral.... plz explain how to set ai scripts i am so confused
     
  4. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    Re: How do you make the computer player actually do anything??????

    Instead of using the RUN AI SCRIPT, try using the RUN AI SCRIPT AT LOCATION. A trigger using it would look like this:

    Instead of using the Terran 3 - Zerg Town in the example, feel free to select one that best fits the computer player's race and be sure to change Location 0 to the Location centered over that computer player's resource node.
     
  5. nx130

    nx130 New Member

    Joined:
    Nov 14, 2007
    Messages:
    38
    Likes received:
    0
    Trophy points:
    0
    Ok I got the computer to gather resources, but it appears as though they are not building any buildings or units besides drones. The triggers/scripts that I am currently using are:

    Conditions:
    Elapsed game time is at least 0 game seconds

    Actions:
    Execute AI script "Zerg campaign easy" at location 3


    what I want this player to do is to build themselves up and amass troops to guard a central building in the middle of the map with occasional assaults on the player
     
  6. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    Okay! Your best bet for a computer player to build up is to use a Custom script instead of a Campaign Script. If you are going to use a Campaign Script, you need to pre-place all the buildings in the Computer Player's Tech Tree and give the Computer Player a starting mineral/vespene gas amount of 6,000.
     
  7. -LT-

    -LT- New Member

    Joined:
    Aug 7, 2007
    Messages:
    3,210
    Likes received:
    1
    Trophy points:
    0
    I wondered the same thing. Thank you so much for clearing this to me! :powerup:
     
  8. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    Have you tried it yet LT? Tell me how it goes. :)
     
  9. Hunter

    Hunter New Member

    Joined:
    Aug 21, 2007
    Messages:
    1,057
    Likes received:
    0
    Trophy points:
    0
    From:
    Hungary,Székesfehérvár
    Actually I came here to tell how to do it.. But I see you have already told all the different ways this can be solved :D good luck with your maps!
     
  10. X[D_Malibu

    X[D_Malibu New Member

    Joined:
    Jan 8, 2008
    Messages:
    5
    Likes received:
    0
    Trophy points:
    0
    ya like they said you have to use a location and triggers but ther is no point in preserving for some like the insane setting
     
  11. Hunter

    Hunter New Member

    Joined:
    Aug 21, 2007
    Messages:
    1,057
    Likes received:
    0
    Trophy points:
    0
    From:
    Hungary,Székesfehérvár
    Yes, actually, last time I wanted to prevent the computer produce units with gas, but set the AI to the highest, no resources were needed for them to produce stuff, so as soon as I got to the base with the patrol, I was roamed by a group of 20 Hydralisks.. These are some annoying but small problems mapmakers have to deal with :)