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

Locust with manadrain

Status
Not open for further replies.
Level 3
Joined
Oct 20, 2007
Messages
32
Hi, been trying to create a version of locus that drains mana and is deactivatable rather than costing an initial amount of mana and lasting a set duration. I know I have to do it with a dummy spell (I chose immolation) and then triggering locust swarm, but I'm having trouble triggering locust swarm. Using the GUI. Thanks.
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Welcome to the Hive Workshop, Aarpia. If you want to introduce yourself to the Community, you may do so here. If not, you should at least read the important Site Rules, to make sure you won't run in trouble.


I don't know if what you're seeking can be done with GUI.
Anyway, spell-creation threads go on the Spells and Systems forum.
~Thread Moved
 
Level 3
Joined
Oct 20, 2007
Messages
32
Would that scale with levels though? (level 3 locust cast with hero initiating level 3 locusts on dummy)
 
Level 3
Joined
Oct 20, 2007
Messages
32
I've tried using a dummy now and I still can't get it to work. My trigger looks something like this:

event:
a unit casts an ability

conditions:
ability being cast = locust variant

Actions:
create dummy belonging to triggering player unit at point of casting
order last created unit to follow triggering unit
order last created unit to cast undead crypt lord - locust swarm
 
Level 3
Joined
Oct 20, 2007
Messages
32
No, it's not that, the ability just doesn't trigger at all. I've made plenty of locust variant spells before so I know that's not the problem. No locusts are released, no damage is done, just the manadrain.
 
Level 3
Joined
Oct 20, 2007
Messages
32
Right, I've got the ability to trigger now. But now my dummy won't follow my casting unit. Also, how do I make the dummy cast the correct level of ability? Do I need to create a separate trigger+dummy for each level?

Events:
Unit - A unit Begins casting an ability
Conditions:
(Unit-type of (Triggering unit)) Equal to Battlemage
(Ability being cast) Equal to Heat Seeking (Caster)
Actions:
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Wait 0.01 seconds
Unit - Order (Last created unit) to Follow (Triggering unit)
Wait 0.01 seconds
Unit - Order (Last created unit) to Undead Crypt Lord - Locust Swarm
 
Level 3
Joined
Oct 20, 2007
Messages
32
Aha! Bingo. Thanks very much! Any idea how to make the dummy follow my casting unit?
Also, my other idea was to have it as a passive ability, but I have even less of an idea of how to do that!
 
Level 3
Joined
Oct 20, 2007
Messages
32
The dummy doesn't even move, that's the problem. It's got max speed, 0 collision, no shadow, no model, but it won't move.
 
Level 3
Joined
Oct 20, 2007
Messages
32
Yeah, I really don't know why it's happening. Might be something to do with the way locust works?
 
Level 3
Joined
Oct 20, 2007
Messages
32
Still can't get it to work. It's really starting to bug me now. My dummy unit just WILL NOT move.
 
Level 3
Joined
Oct 20, 2007
Messages
32
Right, I've finally got my dummy unit to spawn, move, AND follow the caster without being detected. I've updated it to be a passive ability now, so the trigger reads as follows:

Events:
Unit - A unit learns a skill

Conditions:
(Learned Hero Skill) Equal to Heat Seeking (caster aura)

Actions:
Unit - Create 1 Dummy for (Owner of (Learning Hero)) at (Position of (Learning Hero)) facing (Random point in (Playable map area))
Unit - Set level of Heat Seeking (dummy) for (Last created unit) to (Level of Heat Seeking (caster aura) for (Triggering unit))
Unit - Order (Matching unit) to Undead Crypt Lord - Locust Swarm
Unit - Order (Last created unit) to Follow (Learning Hero)



now I have a new problem - the dummy won't cast the ability due to the order. I gave the dummy a model and made it selectable to see if it was following and spawning, and found that the ability works, it just won't fire off when ordered to by the trigger. I also tried to remove the dummy from the game using the "matching unit" condition and action, but no luck.
 
Level 3
Joined
Oct 20, 2007
Messages
32
aha! I have now fixed it! The cause was a very dubious need for a wait. Because casting initiates a tiny delay, the order to follow and the order to cast kind of overlapped. So, it would only do one or the other. The working trigger now looks like this:

Events:
Unit - A unit Learns a skill

Conditions:
(Learned Hero Skill) Equal to Heat Seeking (caster aura)

Actions:
Unit Group - Pick every unit in (Units of type Dummy) and do (Unit - Remove (Picked unit) from the game)
Unit - Create 1 Dummy for (Owner of (Learning Hero)) at (Position of (Learning Hero)) facing (Random point in (Playable map area))
Unit - Set level of Heat Seeking (dummy) for (Last created unit) to (Level of Heat Seeking (caster aura) for (Triggering unit))
Unit - Order (Last created unit) to Undead Crypt Lord - Locust Swarm
Wait 1.00 seconds
Unit - Order (Last created unit) to Follow (Learning Hero)
 
Status
Not open for further replies.
Top