| 07-17-2004, 06:37 AM | #1 |
Ok, I've done a lot of editing of the campaign ai files, but when I pulled up the one for the final level in the night elves campaign for Archimonde's army, it certainly was the most complex I've seen of all the campaign AI files... I need some help understanding this so I can modify it properly... I understand that their are basicly 3 phases of attacks... Against the Humans, Against the Orc's and then against you... And for each of these main phases it picks a hero to attack, then the script picks from preset waves of attack and plays through them in the listed order, like... "Possess wave" "Siege Wave" and so forth, and below you can change how many units and which units appear in each wave. All my changes to the waves worked perfectly, but for some reason the final 3 "uber" attacks if you will don't seem to play out the way I set it up... For example, the computer against the Humans plays out in this order. call add_wave( 0, BASIC_WAVE1 ) call add_wave( 0, BASIC_WAVE2 ) call add_wave( 0, ANTIMAGIC_WAVE ) call add_wave( 0, POSSESS_WAVE ) call pit_stop( 20, 20 ) call add_wave( 0, ANTI_AIR_WAVE ) call add_wave( 0, AIR_WAVE ) call pit_stop( 30, 30 ) call add_wave( 0, SIEGE_WAVE ) call add_wave( 0, PLAGUE_WAVE ) call pit_stop( 30, 30 ) call add_wave( 0, SKELETON_WAVE ) call add_wave( 0, BURNING_WAVE ) call loop_waves() call add_wave( 0, F_U1_WAVE ) call pit_stop( 40, 30 ) call add_wave( 0, F_U2_WAVE ) call pit_stop( 40, 30 ) call add_wave( 0, F_U3_WAVE ) But the F_Waves don't play out properly... F_U1_wave is like this call wave_units( 2, 3, MEAT_WAGON ) // slaughterhouse call wave_units( 3, 4, DOOMGUARD ) // crypt call wave_units( 6, 7, FELLHOUND ) // crypt call wave_units( 4, 5, BANSHEE_CURSE ) // temple of the damned call wave_units( 3, 4, FROST_WYRM ) // boneyard call wave_units( 4, 5, NECRO ) // temple of the damned call wave_units( 1, 1, PIT_LORD ) // undead altar call wave_units( 1, 1, DREAD_LORD ) // undead altar call wave_units( 1, 1, LICH ) // undead altar endfunction But that attack never hit the human base. Basicly everything worked completely fine until after the Burning_Wave attack, I could tell something was not working properly, because only the Pit Lord hero came in the assault and not the Lich or the Dread Lord. In all the previous waves when I told a hero/heroes to attack with the wave it worked fine. But as I said this ai file is extremely complex, so I have no idea what to do. |
