AI Script Help Requested

Discussion in 'Maps and Replays' started by LordKerwyn, Sep 1, 2007.

AI Script Help Requested

Discussion in 'Maps and Replays' started by LordKerwyn, Sep 1, 2007.

  1. LordKerwyn

    LordKerwyn New Member

    Joined:
    Jul 28, 2007
    Messages:
    2,259
    Likes received:
    9
    Trophy points:
    0
    From:
    Deep Space
    I have tried a couple of times so far to build a UMS map involving computers but i cant seem to make the AI scripts work effectively or sometimes even at all. ( I am talking about the campaign and custom AI scripts) I have tried looking up a few things online but i hant found anything that is helpful in explaining how to make them work/use them at all. So i was hoping someone could explain them in some level of detail to me. (For those of you that need to know i use the basic starcraft map editor and i am no guru at it but i do understand most of the triggers and how locations work.)
     
  2. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    Well, it depends whether you run a script at a certain location or not. you have to make sure you are running the script for the right player. and, scripts such as the scripts for the campaign levels, probably won't work because they are specifically designed for that map and the units that that map gives the player to start with. It would be best to use the scripts such as "Protoss-Insane" or any of the ones similar to those. (oh and i have a question... do player-made AI Scripts work even in an un-modded starcraft? if so, what does one have to do to use them, and are there any tutorials on creating them?)
     
  3. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    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.
     
  4. LordKerwyn

    LordKerwyn New Member

    Joined:
    Jul 28, 2007
    Messages:
    2,259
    Likes received:
    9
    Trophy points:
    0
    From:
    Deep Space
    I have read the help section and even gone to the blizzard site as well as some other sites. What im trying to understand is what makes the computer ai scripts do what (ex. what makes the script attack). I think something on the blizzard site sorta explained this but i didnt understand it so im looking for a more clear explanation.
     
  5. ninerman13

    ninerman13 New Member

    Joined:
    Jul 19, 2007
    Messages:
    955
    Likes received:
    2
    Trophy points:
    0
    The scripts attack randomly based on their programming. I've found that as long as you start the computer with a significant amount of resources (10,000 of each personally) they will attack the human player fine. The only way to get the computer to exactly attack as you want is to create your own 'scripted' attacks by creating units and issuing an attack order.
     
  6. MeisterX

    MeisterX Hyperion

    Joined:
    Jul 23, 2007
    Messages:
    4,949
    Likes received:
    17
    Trophy points:
    38
    From:
    New Port Richey, FL
    That's been my experience as well.

    It's usually easiest to create a "flag" action, such as building a Starport, for the player and when this occurs, units are generated and then attack.

    This can be both beneficial and detrimental to the map as it makes it a little too "rigid." It also hampers players who tech earlier.

    I usually just go with an aggressive custom script and include more than one computer, if necessary. You can make it harder and harder by giving that Custom AI larger amounts of starting minerals. This ensures variable attacks and gameplay similar to playing another person.

    You can then use terrain to make the match fair and give the player the advantage they need to stay alive.
     
  7. LordKerwyn

    LordKerwyn New Member

    Joined:
    Jul 28, 2007
    Messages:
    2,259
    Likes received:
    9
    Trophy points:
    0
    From:
    Deep Space
    I think i understand what your saying about the minerals but i am curious about you mean by "aggressive custom script" becuase i havnt seen anything except the the "normal" custom settings and the campaign scripts. And if there is a way to change how agressive a custom AI script is, does the way exist in the normal staredit (or whatever the one that came with startcraft is called)?
     
  8. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    there are i think 4 different scripts for each race, each with a different aggression setting. i am unsure of their names.

    also, is there a tutorial for creating/using player-made AI scripts?
     
  9. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    There is actually a site dedicated to making more competitive and custom AI scripts for StarCraft. Check them out at BroodWar AI Project. Also to make your own triggers I do believe you need certain modding tools.