Add you own build orders to starcrack
submit to reddit

  • I have modified the standard starcrack v7.0 to allow you to create you own opening build orders. This will allow you to help us enhance starcracks next release by having them included in the offical AI.

    To get started with this please download this and install as normal. You can then open the the files ZergOpen.galaxy, TerranOpen.galaxy and ProtossOpen.galaxy to edit the opening build orders.

    There is a heavily commented 'starter' build in the ZergOpen.galaxy so i would recommend starting there.

    All the current build orders are listed in the files so you can look at these for examples.

    If you create a good build please post it back here with a description of the build in standard food notation. Good builds will get included in the next version.

    Here is the starter build as an example.

    This build could be writen as.
    food - what
    9 - overlord
    11 - extractor
    14 - pool
    14 - queen
    16 - overlord
    16-21 - zerglings
    23 - attack
    23 - 2nd extractor

    void ZergOpenGnd0 (int player) {
    // Any lines starting with // are commentes, these lines do not effect the script.
    //All AI scripts should start with the following line.
    AIClearStock(player);

    //The next command reads: make a total of 9 drones.
    //note this is the total number not an additional number.
    AISetStock( player, 9, c_ZU_Drone );

    //once we have 9 drones, or we are building the last drone make a total of 2 overlords.
    //You start with 1 overlord so this will produce a additional overlord.
    AISetStock( player, 2, c_ZU_Overlord );

    //build a total of 11 drones.
    AISetStock( player, 11, c_ZU_Drone );

    //This will create 1 extractor.
    AISetStock( player, 1, c_ZB_Extractor );

    //once we have the extract create a total of 14 drones.
    AISetStock( player, 14, c_ZU_Drone );

    //make a spawning pool once we have 14 drones.
    AISetStock( player, 1, c_ZB_SpawningPool );

    //make a queen after the spawning pool.
    AISetStock( player, 1, c_ZU_Queen );

    //build a total of 11 drones.
    AISetStock( player, 16, c_ZU_Drone );

    //make a third overlord
    AISetStock( player, 3, c_ZU_Overlord );

    // make 10 zerglings
    AISetStock( player, 10, c_ZU_Zergling );

    //To make the AI attack when it has a certain number of units use the command below.
    //This will make the AI attack with 10 units, change the number to change the amount required to attack.
    AIAttackNow(player,10);

    //The next statement will build a 2nd extractor after 268 seconds.
    if (AIGetTime() > 268)
    {
    AISetStock( player, 2, c_ZB_Extractor );
    }

    //All opens need the next line. This instructs the AI to change to the later game scripts.
    //The '600' means it will progress after 600 seconds.
    //The 'false' means it will not attack when it progresses.
    //The true means it will scout using workers in the early game.
    //Change these values to your liking.
    AIGenericOpen(player, 600, false, true);

    //The follow line displays a timer in game for your convenience. This will produce 1 line for every player
    //running this script. That means in a 4 player game you will get 111122223333,
    TriggerDebugOutput(1, StringToText(IntToString(FixedToInt(AIGetTime()))),true);
    }

    tl;dr

    Download, Install, check ZergOpen.galaxy.

    ccT 2
    Private
    avatar

New Reply

If you were logged in you would gain 3 XP for posting a reply.

Please respect our terms of use when participating in Nibbits.

Preview
Comment
We will show a masked version of your IP address as well as your name.

Support Nibbits by linking to us: