HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Missing units in attack wave scripts...

07-17-2006, 05:34 PM#1
Sardius
Any idea why my computer opponent is missing units he's suppose to have in his attack waves? I played through my map and I noticed in the later attack waves, units were missing for the attack assaults.

Collapse JASS:
    //*** WAVE 12 ***
        call InitAssaultGroup()
        call CampaignAttackerEx( 6,6,7, BATRIDER            )
        call CampaignAttackerEx( 4,4,5, BERSERKER        )
        call CampaignAttackerEx( 2,2,2, SHAMAN        )
                         call CampaignAttackerEx( 2,2,3, WITCH_DOCTOR    )
        call CampaignAttackerEx( 2,2,2, KODO_BEAST              )
                          call CampaignAttackerEx( 1,1,1, 'Opgh'        )
        call SuicideOnPlayerEx(M7,M7,M7,user)

        //*** WAVE 13 ***
        call InitAssaultGroup()
        call CampaignAttackerEx( 4,4,5, GRUNT            )
        call CampaignAttackerEx( 3,3,4, TAUREN            )
                         call CampaignAttackerEx( 1,1,2, KODO_BEAST              )
                         call CampaignAttackerEx( 3,3,4, SPIRIT_WALKER        )
        call CampaignAttackerEx( 1,1,2, SHAMAN            )
        call CampaignAttackerEx( 4,4,5, RAIDER            )
                          call CampaignAttackerEx( 4,4,5, CATAPULT        )
        call CampaignAttackerEx( 1,1,1, 'O00D'        )
                          call SuicideOnPlayerEx(M7,M7,M7,user)

        //*** WAVE 14 ***
        call InitAssaultGroup()
        call CampaignAttackerEx( 8,8,9, BERSERKER            )
        call CampaignAttackerEx( 8,8,9, RAIDER        )
        call CampaignAttackerEx( 1,1,2, SHAMAN            )
        call CampaignAttackerEx( 1,1,2, WITCH_DOCTOR    )
        call CampaignAttackerEx( 2,2,2, KODO_BEAST              )
                         call CampaignAttackerEx( 1,1,1, 'Opgh'        )
        call CampaignAttackerEx( 4,4,5, SAPPER        )
                         call SuicideOnPlayerEx(M7,M7,M7,user) 

For example, he NEVER sends sappers, spirit walkers or batriders in the attack waves, or even builds them at their base. Orc barracks can produce Sappers in my map so its not that he's unable to build these units... Is it possible my computer player is hitting the food cap and is unable to build these units? I just find it odd that I didn't see one spirit walker or batrider in any of the attack assaults.
07-18-2006, 04:54 PM#2
Sardius
Wow, my ai script tend to do some crazy things sometimes... Sometimes they send their attack wave a few units at a time, sometimes they skip an attack wave, build up their army and send two attack waves at once... Is there another code I should be using aside from SuicideonPlayer and CallAttacker?

Also what does smart artillery do?