I've been played the very old and classic game StarCraft with my colleagues in these days.
cuz our skill was not balanced. so we decide to team up them against AI. but Normal AI is to weak for us. so I made a (Use map settings) map for us to play. but I found a problem.
WHAT EVER which AI script i use. AI will stop building or only try to rebuild it's base at it's start point. I used to use run AI script at anywhere but. this this lead AI to build his base at the center of map.
so I create a method:
move the start location them rerun the ai script at the new location.
it works. but assistance is needed from another empty computer player.
here is howto
frist delete the default lose trigger for AI players. cos if ai player don't have any building it will exit the game them stop trigger. so remove it!
####the initial AI########
========================================================
Trigger("Player 1"){
Conditions:
Elapsed Time(At most, 1);
Actions:
Run AI Script At Location("Expansion terran campaign insane", "Player 1 Start");
Comment("Run AI INIT");
=========================================================
######### Detect if AI have command center at it's current base #########
Trigger("Player 1"){
Conditions:
Bring("Player 1", "Terran Command Center", "Player 1 Start", At least, 1);
Switch("Player 1 Have Command Center On Start", not set);
Actions:
Set Switch("Player 1 Have Command Center On Start", set);
Preserve Trigger();
Comment("Command Center Detacter");
}
//-----------------------------------------------------------------//
######## Detect if AI player's current base has been destroyed then set a switch #######
Trigger("Player 1"){
Conditions:
Bring("Player 1", "Terran Command Center", "Player 1 Start", At most, 0);
Switch("Player 1 Have Command Center On Start", set);
Actions:
Set Switch("Player 1 Have Command Center On Start", clear);
Preserve Trigger();
Comment("Command Center Detacter 1");
}
#########So When AI's current main base has been destroyed (switch is in set status). here is the script#######
=========================================================
Trigger("Player 1"){
Conditions:
Command("Player 1", "Terran Command Center", At least, 1); We need a base to move
Elapsed Time(At least, 10);
Switch("Player 1 Have Command Center On Start", not set); AI don't have command center at current base
Actions:
Move Location("Player 1", "Terran Command Center", "Anywhere", "Player 1 Start"); move the location player 1 start to another command center.
Set Switch("Player 1 Have Command Center On Start", set); so location moved ,set switch.
Give Units to Player("Player 1", "Player 7", "Any unit", All, "Anywhere"); because you can't run one script for one player simultaneously. so we need to stop current AI script. so we need another empty computer player. when a AI player don't have any unit, old AI script will stop.
Give Units to Player("Player 7", "Player 1", "Any unit", All, "Anywhere"); return all unit to current AI player.
Create Unit("Player 1", "Terran SCV", 4, "Player 1 Start"); this just for a faster start.
Run AI Script At Location("Terren expansion custom level", "Player 1 Start");
Preserve Trigger();
Comment("Re-Run-AI-Script");
======================================================================
and here is my example map for your download
http://rapidshare.com/files/322152853/The_Wild_Hunter.scx