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

Ordering to use an ability

Status
Not open for further replies.
Level 6
Joined
May 11, 2010
Messages
237
I'm having a bit of trouble working out how to order a unit to use a custom ability when x happens. Here's what i've attempted to create. But having trouble with the variables.

  • Events
  • A unit enters region <gen>
  • Conditions
  • (Triggering Unit) Equal to MyUnit <gen>
  • Actions
^a bit lost at where to go next, tried some stuff but none really were very effective. I'm still learning with variables and custom script, got some of it down but in this aspect, not much.
 
Last edited:
Level 6
Joined
May 11, 2010
Messages
237
Thanks for the fast response :) but those dont allow the use of custom abilities though, well not that of I can see, there's only set abilities such as "Undead Crypt Lord - Impale" etc.
 
Level 6
Joined
May 11, 2010
Messages
237
I worked it out, it was so simple... thats the problem with doing this while sleepy, not paying attention. Anyway thank you both, and + rep
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
You issue the unit to preform the orderstring of the ability via any of the target specific natives. Most spells allow you to change the order string but will still only respond to the base order with very few exceptions (channel is one).

Abilitys with no orderstring like the wand of illusuion (creates an illusion of the target unit) require you to use the orderid integer natives. The orderid is retreived by printing the orderid of issued orders and then testing the ability ingame to get its orderid. This is how you can order units to cast abilities like those based on wand of illusion.
 
Status
Not open for further replies.
Top