• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

AI not atacking

Status
Not open for further replies.
Level 3
Joined
Nov 1, 2012
Messages
27
The AI just gather resources, it doesnt atack in none of the waves. What am I doing wrong? I've used (modified) the .ai file from war3expansionhumancanpaign mission 01.
he's not even upgrading! just build 5 accolyte and mine gold. ghouls dont gather lumber.


Heres the jass script:

//============================================================================
// $Id: h01x05.ai,v 1.8 2003/04/29 00:26:32 rpardo Exp $
//============================================================================
globals
player user = PlayerEx(9)
endglobals

//============================================================================
// main
//============================================================================
function main takes nothing returns nothing
call CampaignAI(ZIGGURAT_1,null)
call SetReplacements(4,4,4)
set campaign_wood_peons = 5

call SetBuildUnitEx( 1, 1, 1, ACOLYTE )
call SetBuildUnitEx( 0, 0, 1, NECROPOLIS_1 )
call SetBuildUnitEx( 0, 0, 1, CRYPT )
call SetBuildUnitEx( 0, 0, 5, ZIGGURAT_1 )
call SetBuildUnitEx( 0, 0, 1, GRAVEYARD )
call SetBuildUnitEx( 0, 0, 1, UNDEAD_ALTAR )
call SetBuildUnitEx( 0, 0, 1, NECROPOLIS_2 )
call SetBuildUnitEx( 0, 0, 1, DAMNED_TEMPLE )
call SetBuildUnitEx( 0, 0, 4, ZIGGURAT_2 )
call SetBuildUnitEx( 5, 5, 5, ACOLYTE )

call CampaignDefenderEx( 3, 3, 3, GHOUL )
call CampaignDefenderEx( 3, 3, 3, BANSHEE )
call CampaignDefenderEx( 3, 3, 3, NECRO )

call SetBuildUpgrEx( 1,1,1, UPG_FIEND_WEB )
call SetBuildUpgrEx( 1,1,1, UPG_NECROS )
call SetBuildUpgrEx( 1,1,1, UPG_BANSHEE )
call SetBuildUpgrEx( 1,1,1, UPG_SKEL_LIFE )

//*** WAVE 1 ***
call InitAssaultGroup()
call CampaignAttackerEx( 2,2,4, GHOUL )
call CampaignAttackerEx( 2,2,4, BANSHEE )
call SuicideOnPlayerEx(M3,M3,M2,user)

call SetBuildUpgrEx( 0,0,1, UPG_UNHOLY_STR )
call SetBuildUpgrEx( 0,1,1, UPG_CR_ATTACK )

//*** WAVE 2 ***
call InitAssaultGroup()
call CampaignAttackerEx( 3,3,4, CRYPT_FIEND )
call CampaignAttackerEx( 2,2,4, NECRO )
call SuicideOnPlayerEx(M5,M5,M3,user)

call SetBuildUpgrEx( 0,0,1, UPG_UNHOLY_ARMOR)
call SetBuildUpgrEx( 0,0,1, UPG_CR_ARMOR )
call SetBuildUpgrEx( 1,1,1, UPG_NECROS )
call SetBuildUpgrEx( 1,1,1, UPG_BANSHEE )

//*** WAVE 3 ***
call InitAssaultGroup()
call CampaignAttackerEx( 3,3,5, GHOUL )
call CampaignAttackerEx( 3,3,5, BANSHEE )
call SuicideOnPlayerEx(M5,M5,M3,user)

//*** WAVE 4 ***
call InitAssaultGroup()
call CampaignAttackerEx( 3,3,5, GHOUL )
call CampaignAttackerEx( 2,2,4, CRYPT_FIEND )
call CampaignAttackerEx( 1,1,2, BANSHEE )
call SuicideOnPlayerEx(M5,M5,M3,user)

call SetBuildUpgrEx( 1,1,2, UPG_UNHOLY_STR )
call SetBuildUpgrEx( 1,1,2, UPG_CR_ATTACK )

//*** WAVE 5 ***
call InitAssaultGroup()
call CampaignAttackerEx( 4,4,5, GHOUL )
call CampaignAttackerEx( 1,1,2, MEAT_WAGON )
call CampaignAttackerEx( 2,2,3, NECRO )
call SuicideOnPlayerEx(M5,M5,M3,user)

call SetBuildUpgrEx( 1,1,2, UPG_UNHOLY_ARMOR)
call SetBuildUpgrEx( 1,1,2, UPG_CR_ARMOR )

//*** WAVE 6 ***
call InitAssaultGroup()
call CampaignAttackerEx( 5,5,7, GHOUL )
call CampaignAttackerEx( 3,3,4, BANSHEE )
call SuicideOnPlayerEx(M5,M5,M3,user)

//*** WAVE 7+ ***
loop
call InitAssaultGroup()
call CampaignAttackerEx( 3,3,5, NECRO )
call CampaignAttackerEx( 3,3,4, CRYPT_FIEND )
call CampaignAttackerEx( 1,1,2, MEAT_WAGON )
call SuicideOnPlayerEx(M5,M5,M3,user)

call InitAssaultGroup()
call CampaignAttackerEx( 5,5,7, GHOUL )
call CampaignAttackerEx( 3,3,4, BANSHEE )
call SuicideOnPlayerEx(M5,M5,M3,user)

call InitAssaultGroup()
call InitAssaultGroup()
call CampaignAttackerEx( 3,3,5, GHOUL )
call CampaignAttackerEx( 2,2,4, CRYPT_FIEND )
call CampaignAttackerEx( 2,2,3, BANSHEE )
call CampaignAttackerEx( 1,1,2, NECRO )
call SuicideOnPlayerEx(M5,M5,M3,user)
endloop
endfunction
 
Status
Not open for further replies.
Top