• 🏆 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!

Help on getting AI to cast a spell

Status
Not open for further replies.
Level 3
Joined
Dec 19, 2012
Messages
18
Hello so im trying to make AI cast spells for one of my maps. I have been helped before and got it to work but i have run into another problem.
Im trying to figure out a way to get AI to cast this spell below.
http://www.hiveworkshop.com/forums/spells-569/splitting-fireball-v1-0-a-243419/


If anyone can help me out, im still kind of new to triggers but if some one can help me i can figure it out most likely. I would post what i have but it wouldnt really help as it does nothing, ive looked at previous tutorials like the AI spell cast ETC and i cannot figure it out for my life lol.
 
Level 5
Joined
Feb 22, 2013
Messages
161
Condition for mana cost
Condition for enemy health (optional)
Condition for if the AI hero actually has the ability
Condition for anything else before the AI casts
If above is true then cast on enemy's position or the enemy if it's a targeted ability

If it's a cast on self then another condition would be to see if the enemy is within range of the AI hero.
 
Status
Not open for further replies.
Top