• 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 do I force cast custom spells?

Status
Not open for further replies.
Level 4
Joined
Dec 30, 2009
Messages
60
I want to know how to do something like this:
  • Unit - Order (unit) to Cast Custom Spell (unit)
Even in Jass it uses a name value (I think...).

JASS:
function Spell_Actions takes nothing returns nothing
    call IssueTargetOrderBJ( GetTriggerUnit(), "fingerofdeath", GetLastCreatedUnit() )
endfunction

Does it use the spells "Order String"?

Or is it using something else?

Help is appreciated!
 
Level 6
Joined
Jan 31, 2009
Messages
166
Never done it in jass but in Gui you use

  • Unit - Order (Triggering unit) to Human Paladin - Holy Light (Picked unit)
For a custum abilty simply use the order for which the custum abilty is based off of. Eg if something is based off blizzard use

  • Unit - Order (Last restored unit) to Human Archmage - Blizzard (Center of (Playable map area))
Of course you must change the values like target and triggering unit to fit what you need.

Hope that helps
 
Status
Not open for further replies.
Top