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

[Spell] Channel

Status
Not open for further replies.
Level 28
Joined
Sep 26, 2009
Messages
2,520
I would do it via dummy unit and dummy spell.
Give dummy spell to hero. When hero begins casting this dummy spell, create dummy unit at his location and give him the actual spell and order him to cast it. Dummy unit will channel the spell, while your hero may move however he wishes.

In case you anted that dummy unit to move with the hero, you will need a trigger that moves the dummy unit every 0,03 seconds via commands SetUnitX(unit, X_coordinate_of_point) and SetUnitY(unit, Y_coordinate_of_point). These do not interrupt orders like the basic "Move unit" action.


There may be better ways to do it than the way I am described.
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
in the action list it is one of these:
"Unit - Issue order targeting a unit/a point/a destructible/an item"
or
"Unit - Issue order with no target"

If the ability targets a unit (e.g. Holy Light), you want to use the action "Issue order targeting a unit"; if it is targeting a point (e.g. Blizzard), you want to issue order targeting a point; etc.
If it does not require any target (e.g. Starfall, Berserk, ...), you have to "Issue order with no target"


Also, you have to issue an ability from which you based off your own custom ability.
For example - If you create new ability called "Passive heal", which is based off Tranquility, and you want a dummy unit to cast this "Passive heal" ability, then you have to issue order with no target -> in the list find "Night Elf - Tranquility" (or something like that); You have to order Tranquility because your own ability is based off tranquility.

If you based off your ability off Blizzard, then you have to issue "Blizzard", etc.
 
Level 5
Joined
Jul 15, 2012
Messages
101
My skill is Meteor Shower. I order to cast Rain of Fire but he doesn't have that skill, if i add it i don't know how to turn it to my custom Meteor Shower.

  • Untitled Trigger 002
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Meteor Shower 1 OW
    • Actions
      • Unit - Order (Casting unit) to Stop
      • Unit - Create 1 (Unit-type of (Casting unit)) for Player 1 (Red) at (Position of (Casting unit)) facing Default building facing degrees
      • Set Dummy1 = (Last created unit)
      • Unit - Make Dummy1 Invulnerable
      • Unit - Hide Dummy1
      • Unit - Order Dummy1 to Neutral Pit Lord - Rain Of Fire (Position of Dummy1)
 
Status
Not open for further replies.
Top