How do I force cast custom spells?

Status
Not open for further replies.
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!
 
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.
Back
Top