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

[Trigger] Custom orders?

Status
Not open for further replies.
Level 3
Joined
Mar 4, 2010
Messages
31
Soz if this has already been addressed but is it possible to make custom orders such as ordering unit to cast custom spell? If there is one, can someone show me how?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,286
Custom spells are always an extension of an existing spell.

The order you use to cast a custom spell is usually the same as the order you use to cast its base spell. Thus any shockwave based custom spell will respond to the shockwave order (GUI makes it sound ability specific but it is not, it will work for all abilites that extend that ability (take the same order).

The expection is channel, which you can customize which order it uses.

Not all abilites have order strings, like the wand of illusion ability. In that case, you must use ability ID (a 32 bit integer) to order the ability to be cast. There are many other things that ability IDs can do which do not have order strings (like ordering the moving of items).

Note that order ID is only usable with JASS. Additionally order strings make more sense with JASS as they match up with the order string each ability has in the object editor.
 
Level 26
Joined
Aug 18, 2009
Messages
4,099
Not all abilites have order strings, like the wand of illusion ability. In that case, you must use ability ID (a 32 bit integer) to order the ability to be cast. There are many other things that ability IDs can do which do not have order strings (like ordering the moving of items).

abilityID --> orderId and these are usually around 852k.
 
Status
Not open for further replies.
Top