• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How I can make heroes in AI use spells?

Status
Not open for further replies.
One way for such AI is the command 'Player Force UI Key'. If forces the player to press a button. So if your spell has hotkey D, then you do 'Force (Triggering unit) to press D key'.

But the best is probably 'Unit - Order (Triggering unit) a command issueing (a unit/an object/no target)', and force him to use the spell.
 
you always helpme, thanks

the tigger will be...?(I don't know wite this phase xD, but, you understand wath I said?)

portuguese: como vai ficar o tigger?
  • event
  • Player Force UI Key
  • condition
  • If forces the player to press a button
  • action
  • Unit - Order (Triggering unit) a command issueing (a unit/an object/no target)
EDIT1:
this???

EDIT2:
you always helpme, thanks

the tigger will be...?(I don't know wite this phase xD, but, you understand wath I said?)

portuguese: como vai ficar o tigger?
  • event
  • unit comes wifh rage of XXXX
  • conditions
  • controler of tiggering unit equl to computer
  • action
  • Unit - Order (Triggering unit) a command issueing (a unit/an object/no target)
EDIT3:
not have this action =\
 
Last edited by a moderator:
Tanks!!!!
I was see on "player" xD

don't works, I like this on my Carrion swan edited,
  • Events
  • Unit - A Unit comes in range of (Vampire Warrior)
  • Conditions
  • Controller of Triggering unit equal to Computer
  • Actions
  • Player - Force Player 1 (Red) to press the W key
  • Player - issue order to (player 1) (right click (entering unit))
but not works =\
 
Last edited:
Status
Not open for further replies.
Back
Top