• 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.

How I can make heroes in AI use spells?

Status
Not open for further replies.
Level 18
Joined
Aug 23, 2008
Messages
2,319
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.
 
Level 11
Joined
Oct 13, 2008
Messages
560
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:
Level 11
Joined
Oct 13, 2008
Messages
560
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.
Top