• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Looking for opinion about a certain AI shortcut

Status
Not open for further replies.
Level 4
Joined
Dec 12, 2018
Messages
35
So, I've been creating a basic AI for my campaign and found a little problem. I created an enemy hero with a leveled version of the animate dead ability. It works pretty well in almost every situation but, for some reason, when he gets into his base, he starts spamming it on the corpses of the graveyard. Those reanimated units are, of course, completely useless and the hero gets out of mana pretty soon.

I know this issue could probably be easily solved by learning some JASS programing but, honestly, I rather not. So, I've tried doing the most basic thing and removed the generate corpse ability of the graveyard.

I really would like to receive some opinions: would you think this is an acceptable solution? Frankly, the AI barely benefits from those corpses, only marginaly by casting Raise Dead when it's defending it's base.
 
Level 4
Joined
Dec 12, 2018
Messages
35
If that's not quite the pickle... hm.

A triggered Animate dead could solve this, but i guess your solution works well enough for now.
Been tinkering a bit with that idea and managed to make it work but feels weird. For some reason, looks like the AI hero uses the ability much more than previously, I think he even ignores the cooldown.

I think this issue is caused because the trigger gives and removes the ability when the hero uses other spells or is attacking.
 
Level 23
Joined
Dec 4, 2007
Messages
1,557
You are removing the ability when said hero is in the base?
Are you on 1.31 patch?
You can set the cooldown of abilities to your liking if so.
 
Status
Not open for further replies.
Top