No AI in casting spells (heros) since 1.31?

Hi,

this happens since I patched to 1.31:
When I am playing offline vs Computer (normal/insane), the heros dont use any spells at all…

Can someone help???

13 Likes

Hey :slight_smile:

I reported this issue, too. More than casting, though, it’s that the AI literally doesn’t choose any skill (notice how the AI heroes don’t even use passive skills such as Reincarnation or Aurae).
I, too, hope that they’ll fix this one soon as it provides an unfair advantage to the Non-CPU players.
Anyway, the best we can do until they solve it is fixing it ourselves via triggers so that the AI chooses the skills for each hero on level up.

5 Likes

Richard, can you explain how do do this please?

the best we can do until they solve it is fixing it ourselves via triggers

3 Likes

I have this exact problem as well.

2 Likes

Custom map making in general is completely bugged in version 1.31 don’t save your map with this version it will corrupt the strings

You need to create two different triggers: one for level 1 heroes, and the other one for levels 2-10.

Tigger # 1
**Event: **
Unit - Generic Unit Event -> A unit Finishes training a unit

Condition:
Player Controller Comparison - Owner of (Trained Unit) not equal to User

Actions:
Here you check for each hero and then select a skill, like the following two examples:

If / Then / Else , Multiple functions
** If - Conditions -> Unit-type of (Trained Unit) Equal to Paladin**
** Then - Actions -> Hero - Learn Skill for (Trained Unit): Human Paladin - Holy Light**
** Else -> Do Nothing**

If / Then / Else , Multiple functions
** If - Conditions -> Unit-type of (Trained Unit) Equal to Archmage**
** Then - Actions -> Hero - Learn Skill for (Trained Unit): Human Archmage - Blizzard**
** Else -> Do Nothing**

[repeat for each hero]

Trigger # 2

Event:
Unit - Generic Unit Event -> A unit Gains a level

Conditions:
Player Controller Comparison: Owner of (Leveling Hero) controller not equal to User

Actions:
Again, here you make the heroes learn their spells but this time your check depends on their current level. The unit-type check isn’t important here
Example:
If / Then / Else , Multiple functions
** If : Hero Level of (Leveling Hero) Equal to 2**
** Then - Actions:**
** Hero - Learn skill for (Leveling Hero): Human Paladin - Devotion Aura**
** Hero - Learn skill for (Leveling Hero): Human Mountain King - Thunder Clap**
** Hero - Learn skill for (Leveling Hero): Human Archmage - Brilliance Aura**
** [… and so on … ]**
** Else**
** Do Nothing**

Keep in mind that the AI heroes still check for requirements, so you can’t, say, make them learn a Level 3 Death Coil with a Level 3 Death Knight or Inferno with a Level 1 Dreadlord :slight_smile:

I hope this helps, and if you need further help feel free to ask!

2 Likes

No we talking about LAN games.

Bots dont learn skills or use em.

Its bugged

1 Like

I know. These two triggers make bots learn skills . It’s a temporary fix you need to use until Blizzard solves this bug.

2 Likes

damn wish you could do a quick youtube video to follow your steps i_i

1 Like

Do you need the editor to implement those triggers?

1 Like

Just to follow up on this topic. Can confirm that this is happening.

Melee games with AI are just not in a playable state. This even applies for maps that use Advanced Melee AI, a supposedly externalized library of AI logic…

Edit: grammar mistakes

3 Likes

Wow didn’t see this thread and I already posted a new one. Darn.

Yah, it’s more like computer heroes don’t pick abilities and use them at all.

5 Likes

Welcome aboard, brother/sister :joy:

2 Likes

I guess that the ability-reference has been changed in the AI-scripts. Also in the WorldEdit the hero-abilities’ names are changed and the AI doesn’t level-up skills they don’t know

2 Likes

What a shame, still no fix!

3 Likes

Is there any way to roll back my version without needing to find my discs from years ago?

Thanks man!

Hi

AI heroes don’t use spells.

Blizzard, what we have to do? Please, fix

It’s problem is actually from 6 Jan!!!