• 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] Take control of enemy hero for X seconds

Status
Not open for further replies.
Level 3
Joined
Jan 18, 2012
Messages
26
Hey i was recommended to use that spell on my new hero, the problem is , i dont really know how to make it, any ideas?
Level 6 spell that would take control of enemy unit for 4 seconds
 
Level 6
Joined
Feb 6, 2008
Messages
166
Can you supply more detail about the skill you want to make? Is it channeling?

Off the bat, I would recommend looking into using the Undead Unit ability called "Possession (Channeling)".

If the skill you want is not channeling, you can create a skill using the Neutral Hostile Hero ability called "Channel". "Channel" is basically a blank-slate skill that allows you to build everything from scratch. If you use "Channel", you would set "Data - Target Type" to "Unit Target". Create a dummy unit and name it something like Dummy Caster. You would need to give the dummy unit the following settings:
Abilities - Normal: Locust
Art - Animation - Cast Backswing: 0.000
Art - Animation - Cast Point: 0.000
Art - Model File: Abilities - Tree of Life upgrade ability <Target>
Art - Shadow Image (Unit): None
Combat - Attacks Enabled: None
Combat - Death Type: Can't raise, Does not decay
Movement - Type: Fly
Pathing - Collision Size: 0.00
Stats - Food Cost: 0
Stats - Hide Minimap Display: True
Stats - Sight Radius (Day): 0
Stats - Sight Radius (Night): 0

With triggers, you would detect when a unit starts the effect of an ability. Conditions would check that the ability was your new copy of "Channel", whatever you decided to name it. Set a temporary location variable equal to the position of "target of ability being cast", create a dummy caster unit and give it your "Possession (Channeling)" ability and set it to have timed life, and then order the dummy unit to cast it on the "target of ability being cast".



I hope this made stuff clearer for you. It would be easier for the Hive to help if we knew more details about the skill you wanted.
 
Level 3
Joined
Jan 18, 2012
Messages
26
Undead ability , possession looks good but ill see if i can only make the time instead of permanent to 4 seconds, and i dont want it to permanent, i want it just work like possesion/charm(dark ranger). Thank you
 
Status
Not open for further replies.
Top