• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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