Custom AI making , read plz
Realy I am amazed by people , AI is easier than people think , but im not going to tell u how to do it , I spent hours , and I've learnt how to make custom AI like the game dessigners , Below is a Script for a custom AI , it has a build plan , a defense plan and a attack plan
//============================================================================
// $Id: h01x05.ai,v 1.8 2003/04/29 00:26:32 rpardo Exp $
//============================================================================
globals
player sylvie = PlayerEx(5)
endglobals
//============================================================================
// main
//============================================================================
function main takes nothing returns nothing
call CampaignAI(ZIGGURAT_1,null)
call SetReplacements(6,6,8)
set campaign_wood_peons = 3
call SetBuildUnitEx( 1, 1, 1, ACOLYTE )
call SetBuildUnitEx( 1, 1, 1, NECROPOLIS_1 )
call SetBuildUnitEx( 2, 2, 1, CRYPT )
call SetBuildUnitEx( 5, 5, 5, ZIGGURAT_1 )
call SetBuildUnitEx( 1, 1, 1, GRAVEYARD )
call SetBuildUnitEx( 1, 1, 1, UNDEAD_ALTAR )
call SetBuildUnitEx( 1, 1, 0, NECROPOLIS_2 )
call SetBuildUnitEx( 1, 1, 1, DAMNED_TEMPLE )
call SetBuildUnitEx( 4, 4, 4, ZIGGURAT_2 )
call SetBuildUnitEx( 1, 1, 1, SLAUGHTERHOUSE )
call SetBuildUnitEx( 1, 1, 1, SAC_PIT )
call SetBuildUnitEx( 1, 1, 0, NECROPOLIS_3 )
call SetBuildUnitEx( 5, 5, 5, ACOLYTE )
call CampaignDefenderEx( 1, 1, 1, GHOUL )
call CampaignDefenderEx( 1, 1, 1,OBS_STATUE )
call CampaignDefenderEx( 1, 1, 1, CRYPT_FIEND )
call CampaignDefenderEx( 2, 2, 1, BANSHEE )
call CampaignDefenderEx( 2, 2, 1, NECRO )
call SetBuildUpgrEx( 1,1,1, UPG_FIEND_WEB )
call SetBuildUpgrEx( 1,1,1, UPG_EXHUME )
call SetBuildUpgrEx( 1,1,0, UPG_SKEL_MASTERY )
call SetBuildUpgrEx( 1,1,0, UPG_NECROS )
call SetBuildUpgrEx( 1,1,0, UPG_BANSHEE )
call SetBuildUpgrEx( 1,1,1, UPG_SKEL_LIFE )
call WaitForSignal()
//*** WAVE 1 ***
call InitAssaultGroup()
call CampaignAttackerEx( 6,6,4, GHOUL )
call CampaignAttackerEx( 4,4,2, NECRO )
call CampaignAttackerEx( 4,4,2, BANSHEE )
call SuicideOnPlayerEx(M2,M2,M3,sylvie)
call SetBuildUpgrEx( 1,1,1, UPG_UNHOLY_STR )
call SetBuildUpgrEx( 1,1,1, UPG_CR_ATTACK )
//*** WAVE 2 ***
call InitAssaultGroup()
call CampaignAttackerEx( 4,4,4 CRYPT_FIEND)
call CampaignAttackerEx( 2,2,2, ABOMINATION )
call CampaignAttackerEx( 3,3,2, NECRO )
call SuicideOnPlayerEx(M3,M3,M5,sylvie)
call SetBuildUpgrEx( 1,1,1, UPG_UNHOLY_ARMOR)
call SetBuildUpgrEx( 1,1,1, UPG_CR_ARMOR )
call SetBuildUpgrEx( 1,1,1, UPG_NECROS )
call SetBuildUpgrEx( 1,1,1, UPG_BANSHEE )
//*** WAVE 3 ***
call InitAssaultGroup()
call CampaignAttackerEx( 7,7,5, GHOUL )
call CampaignAttackerEx( 2,2,1, MEAT_WAGON )
call CampaignAttackerEx( 4,4,3, GARGOYLE )
call CampaignAttackerEx( 4,4,3, NECRO )
call CampaignAttackerEx( 4,4,3, BANSHEE )
call SuicideOnPlayerEx(M3,M3,M5,sylvie)
//*** WAVE 4 ***
call InitAssaultGroup()
call CampaignAttackerEx( 7,7,5, GHOUL )
call CampaignAttackerEx( 4,4,4, ABOMINATION )
call CampaignAttackerEx( 5,5,4, CRYPT_FIEND)
call CampaignAttackerEx( 3,3,2, BANSHEE )
call SuicideOnPlayerEx(M3,M3,M5,sylvie)
call SetBuildUpgrEx( 2,2,2, UPG_UNHOLY_STR )
call SetBuildUpgrEx( 2,2,2, UPG_CR_ATTACK )
//*** WAVE 5 ***
call InitAssaultGroup()
call CampaignAttackerEx( 4,4,5, GHOUL )
call CampaignAttackerEx( 2,2,2, MEAT_WAGON)
call CampaignAttackerEx( 6,6,5, CRYPT_FIEND)
call CampaignAttackerEx( 3,3,2, NECRO )
call SuicideOnPlayerEx(M3,M3,M5,sylvie)
call SetBuildUpgrEx( 2,2,2, UPG_UNHOLY_ARMOR)
call SetBuildUpgrEx( 2,2,2, UPG_CR_ARMOR )
//*** WAVE 6 ***
call InitAssaultGroup()
call CampaignAttackerEx( 5,5,7, GHOUL )
call CampaignAttackerEx( 4,4,3, GARGOYLE )
call CampaignAttackerEx( 3,3,4, BANSHEE )
call SuicideOnPlayerEx(M3,M3,M5,sylvie)
//*** WAVE 7+ ***
loop
call InitAssaultGroup()
call CampaignAttackerEx( 7,7,5, NECRO )
call CampaignAttackerEx( 6,6,4, CRYPT_FIEND)
call CampaignAttackerEx( 2,2,2, MEAT_WAGON)
call SuicideOnPlayerEx(M3,M3,M5,sylvie)
call InitAssaultGroup()
call CampaignAttackerEx( 5,5,7, GHOUL )
call CampaignAttackerEx( 4,4,3, ABOMINATION )
call CampaignAttackerEx( 6,6,4, GARGOYLE )
call CampaignAttackerEx( 4,4,3, BANSHEE )
call SuicideOnPlayerEx(M5,M5,M3,sylvie)
call InitAssaultGroup()
call InitAssaultGroup()
call CampaignAttackerEx( 7,7,7, GHOUL )
call CampaignAttackerEx( 4,4,4, CRYPT_FIEND)
call CampaignAttackerEx( 4,4,3, BANSHEE )
call CampaignAttackerEx( 3,3,2, NECRO )
call SuicideOnPlayerEx(M5,M5,M3,sylvie)
endloop
endfunction
so if anyone needs a custom AI e-mail me at
[email protected] and put your demands and e-mail , The AI editor is good only to make melee AI