• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

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 22
Joined
Dec 4, 2007
Messages
1,543
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