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!
For anyone who want to make Orc AI train 3 heroes (they only train 2 heroes by default):
You need both MPQ Editor and JassCraft. Note that, you can't use JassCraft on Windows 11.
If your game doesn't have MPQ, you must use CASC Viewer.
This instructions assumes that your game has MPQ (for 1.29 below):
Go to "Scripts" and find the file called "orc.ai".
Extract to anywhere else, then open it with JassCraft.
CTRL + F and put in "init_vars". Add these lines:
JASS:
set b_hero1_done = GetUnitCountDone(hero_id) >= 1
set b_hero2_done = GetUnitCountDone(hero_id2) >= 1
set b_hero3_done = GetUnitCountDone(hero_id3) >= 1
set b_ensnare = GetUpgradeLevel(UPG_ORC_ENSNARE) >= 1
CTRL + F and this time put in "build_sequence".
Take a look at the "always rebuild heroes for defense" tag. Make sure the "if c_altar_done" look like this:
JASS:
if c_altar_done >= 1 then
if b_hero1_done and MeleeDifficulty() != MELEE_NEWBIE then
if b_hero2_done then
if b_hero3_done or c_fortress_done >= 1 then
call SetBuildUnit( 1, hero_id3 )
endif
else
call SetBuildUnit( 1, hero_id2 )
endif
else
call SetBuildUnit( 1, hero_id )
endif
Save changes, then replace the original "orc.ai" with the ones you modified.
If you still get boring on playing against Orc AI with 3 heroes, here's the complete AI scripts for all races.
Make sure to use the correct path based on the MPQ when you import the AI files.
I was not sure where to post this in order to make people easily find this, because I saw a couple of guys in WC3 seeking for this. However since one of the latest patches, the AI in Warcraft 3 cannot choose Hero spells for their heroes. In any melee or custom map, it fails the standard AI...
For anyone who want to make Orc AI train 3 heroes (they only train 2 heroes by default):
You need both MPQ Editor and JassCraft. Note that, you can't use JassCraft on Windows 11.
If your game doesn't have MPQ, you must use CASC Viewer.
This instructions assumes that your game has MPQ (for 1.29 below):
Go to "Scripts" and find the file called "orc.ai".
Extract to anywhere else, then open it with JassCraft.
CTRL + F and put in "init_vars". Add these lines:
JASS:
set b_hero1_done = GetUnitCountDone(hero_id) >= 1
set b_hero2_done = GetUnitCountDone(hero_id2) >= 1
set b_hero3_done = GetUnitCountDone(hero_id3) >= 1
set b_ensnare = GetUpgradeLevel(UPG_ORC_ENSNARE) >= 1
CTRL + F and this time put in "build_sequence".
Take a look at the "always rebuild heroes for defense" tag. Make sure the "if c_altar_done" look like this:
JASS:
if c_altar_done >= 1 then
if b_hero1_done and MeleeDifficulty() != MELEE_NEWBIE then
if b_hero2_done then
if b_hero3_done or c_fortress_done >= 1 then
call SetBuildUnit( 1, hero_id3 )
endif
else
call SetBuildUnit( 1, hero_id2 )
endif
else
call SetBuildUnit( 1, hero_id )
endif
Save changes, then replace the original "orc.ai" with the ones you modified.
If you still get boring on playing against Orc AI with 3 heroes, here's the complete AI scripts for all races.
Make sure to use the correct path based on the MPQ when you import the AI files.
I was not sure where to post this in order to make people easily find this, because I saw a couple of guys in WC3 seeking for this. However since one of the latest patches, the AI in Warcraft 3 cannot choose Hero spells for their heroes. In any melee or custom map, it fails the standard AI...
Awesome. I tried. However, the codes didn't work. I used Notepad.exe to edit the .AI files. Was it wrong?
Well, it doesn't matter. Because I found Ujimasa Hojo's AI is great. I modified it to suit my custom heroes which have different abilities from the original ones, and it works well. Thank you so much.
Awesome. I tried. However, the codes didn't work. I used Notepad.exe to edit the .AI files. Was it wrong?
Well, it doesn't matter. Because I found Ujimasa Hojo's AI is great. I modified it to suit my custom heroes which have different abilities from the original ones, and it works well. Thank you so much.
You probably need JassCraft to open the .AI files, but since Windows 11 doesn't allow me to use JassCraft due to the compatibility issue, your only option would be to get the modified one by Ujimasa Hojo (or kizonrus if you prefer working AI heroes on 1.31.1). Both of these scripts allow the AI to do numerous things (such as 3 heroes, Spirit Walkers, and Demolishers with Burning Oil upgrade for Orc AI, 3 Masonry upgrades and Siege Engine with Barrage upgrade for Human AI, and so on). To use the script, either use the World Editor's Import Manager, but be sure to change the "war3mapImported" to "Scripts" so that it overrides the original from War3.mpq/War3x.mpq, or you can use the Local files trick, which involves placing the entire "Scripts" folder to Warcraft 3 game directory. If you want to play skirmish with more enhanced AI (hire mercenaries, neutral heroes, etc), you probably need AMAI.
You probably need JassCraft to open the .AI files, but since Windows 11 doesn't allow me to use JassCraft due to the compatibility issue, your only option would be to get the modified one by Ujimasa Hojo (or kizonrus if you prefer working AI heroes on 1.31.1). Both of these scripts allow the AI to do numerous things (such as 3 heroes, Spirit Walkers, and Demolishers with Burning Oil upgrade for Orc AI, 3 Masonry upgrades and Siege Engine with Barrage upgrade for Human AI, and so on). To use the script, either use the World Editor's Import Manager, but be sure to change the "war3mapImported" to "Scripts" so that it overrides the original from War3.mpq/War3x.mpq, or you can use the Local files trick, which involves placing the entire "Scripts" folder to Warcraft 3 game directory. If you want to play skirmish with more enhanced AI (hire mercenaries, neutral heroes, etc), you probably need AMAI.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.