• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

computer hero using spells

Status
Not open for further replies.
Level 17
Joined
Oct 30, 2004
Messages
1,277
As said in the topic, how do i get a computer players hero to use his spells? If i give the hero an order to attack-move to somewhere where there is enemy units, how do i get the hero (controlled by computer) to learn and use his spells against the enemy units?

Sounds simple, and i though it would be, but i find myself hitting brick wall. Anyone can help me?
 
I am not pro at those things, but i'm sure you will have to give it a custom AI (Artifical Intelligent for Warcraft).
If you are not talking about custom spells that you make yourself, you also have to give it a different AI. If you change the skills of a tauren chieftan (for example) the AI still orders them to learn the original tauren chieftan's skills (as far as I know).

-Rui
 
Event
A unit starts attacking a unit
Action
Order Attacking Unit to [use spell] (on attacked unit)

I think that's the basic idea for auto-casting units, check Darkys map "Natures Call - Circle Defense", there're some trigger functions that could be useful (at least I remember them to be there).

For the learning, there should be an action that makes the hero learn an ability (or set the level of an ability). For the event, there's sth like "Hero - A hero gains a level".

Of course you can do that by editing the AI-file, but that's difficult as hell.
 
Well i though it had something to with the AI. I browsed through the AI section in here wc3search but i didnt really understand anything since they didnt have descriptions. Anyone more familiar to AI's knows if there is AI in the AI section right here on wc3search? And i just want a normal hero using his spells what blizzard gave him, nothing custom, and more spesificly Undead Heroes. I cant believe making the hero use his spells with a trigger is the only way...it cant be?? So AI help needed :)
 
Status
Not open for further replies.
Back
Top