• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Base abilities for custom spells cast by melee-game AI units

Level 5
Joined
Jul 4, 2007
Messages
84
At the moment the normal melee AI from Blizzard is broken. I think the spell-reference has been changed. The names of hero-spells have been changed in the WorldEdit as well. Thus the AI does not skill spells anymore :O
I read this entire thread...
...excitedly rubbing my hands together the whole time...
...planning how to use all of this greatness in my current project; 3ICE's Spell Defense...
...only to find out AI is broken currently!?

No...

Edit:

The AI_Test_Map.w3x seems to work fine
. (editor and wc3 both tested)
No crashes on launch, AI stable for over an hour. All spells did autocast.
Memory leaks galore so had to terminate wc3 upon exit. But that's not important.

Can not reproduce your original issue. AI not broken.
Or did you mean learning hero abilities?

+rep to OP for maintaining this guide. Still works today.

p.s.: Some of the units do 0 damage in the map, even though they seem to have a valid attack with non-zero damage. Apparent if attacking my own stuff.
 
Level 1
Joined
Feb 4, 2019
Messages
3
I read this entire thread...
...excitedly rubbing my hands together the whole time...
...planning how to use all of this greatness in my current project; 3ICE's Spell Defense...
...only to find out AI is broken currently!?

No...

Edit:

The AI_Test_Map.w3x seems to work fine
. (editor and wc3 both tested)
No crashes on launch, AI stable for over an hour. All spells did autocast.
Memory leaks galore so had to terminate wc3 upon exit. But that's not important.

Can not reproduce your original issue. AI not broken.
Or did you mean learning hero abilities?

+rep to OP for maintaining this guide. Still works today.

p.s.: Some of the units do 0 damage in the map, even though they seem to have a valid attack with non-zero damage. Apparent if attacking my own stuff.

What I was referring to was that the melee AI's heroes don't learn hero abilities. For example the Archamge at lvl 1 does not learn any skill (same is true for all levels and heroes).
I gave myself full unit-control and had an AI ally and i was able to verify that the AI had spare skill points but didn't use them to learn an ability.
This happens in ordinary melee games VS the AI and also in melee games VS AMAI (alternate melee AI)

The units do use all their abilities :)
 
Level 5
Joined
Jul 4, 2007
Messages
84
melee AI's heroes don't learn hero abilities
the AI had spare skill points but didn't use them to learn an ability.
Thank you for bringing this to my attention! What a serious regression from old versions' AI. +rep
Level 5 Computer hero, normal melee AI controller. Zero abilities picked in half an hour:
upload_2019-11-2_20-58-12.png

Will compare the source code to see how Blizzard broke it.

Edit: 1.26 AI was learning spells no problem:
upload_2019-11-2_21-20-4.png
= upload_2019-11-2_21-18-46.png (click for full ver)

Now to compare Blizzard.j, common.ai, and common.j across
Warcraft III 1.31\war3.w3mod\scripts vs. Warcraft III 1.26\War3x.mpq\Scripts\
 
Last edited:
Level 3
Joined
Jun 24, 2019
Messages
24
Report:
Roar/Howl of Terror does NOT work in latest patch, tried different cases:
(1) have allies to flight against enemies with hero
(2) have allies to flight against enemies without hero
(3) flight alone against enemies with hero
(4) flight alone against enemies without hero

None of them work :(
 
Level 20
Joined
Nov 20, 2005
Messages
1,178
Report:
Roar/Howl of Terror does NOT work in latest patch, tried different cases:
(1) have allies to flight against enemies with hero
(2) have allies to flight against enemies without hero
(3) flight alone against enemies with hero
(4) flight alone against enemies without hero

None of them work :(
So no flying units will trigger the ai into casting the spell?
 
Level 3
Joined
Jun 24, 2019
Messages
24
So no flying units will trigger the ai into casting the spell?

Sorry, just tested more, seems like it depends on the player -> if enemy is also a player then it will cast.

However, it will NOT cast if enemy is neutral hostile. <= I tested more, so only very limited spells (around 1/3) will be cast if enemy is neutral hostile
 
Top