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

Order unit A to cast a spell at unit B immediately during the starting of the game.

Status
Not open for further replies.
Level 4
Joined
Aug 7, 2010
Messages
77
hello pro editor. As the title, i'm currently facing difficulty about ordering a unit to cast a spell at another unit immediately when the game starts. I've found the action "order unit to attack another unit" but thats not what i'm needed. What i need is to order the unit to caste a spell. Any idea how to do with triggers?
 
Level 7
Joined
May 13, 2011
Messages
310
You're looking for something like this:

  • Initialization Spell
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Order Sorceress 0000 <gen> to Human Sorceress - Slow Footman 0001 <gen>
As you can see, this is a trigger to order a manually defined Sorceress to cast Slow on a manually defined Footman. Of course, change these to your appropriate values. The action is called "Unit - Issue Order Targeting A Unit".

By the way, if you're using a custom spell, just order the unit to cast the spell which your custom one is based off. So, for example, if you've based a spell of Heal, order the unit to cast "Human Priest - Heal".
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Please make sure the spell is "ready-to-be-used" in terms of Cooldown 0, Mana Cost 0, Requirements have passed (Research is done such as Invisibility by Sorceress), etc

There are 3 types of spell-target, which are:
1. Target-unit
2. Target-point
3. Instant

Target-unit
A spell that is directly targeted to a unit such as Chain Lightning.

Target-point
A spell that targets ground which have/doesn't have the AoE indicator such as Flame Strike or Serpent Ward

Instant
A spell that when we click, it is immediately casted without referring it to anything such as Windwalk

Now tell me, what is your spell that needs to be casted ?
I can solve it for you
 
Status
Not open for further replies.
Top