• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Problem with dummy-unit not spawning

Status
Not open for further replies.
Level 3
Joined
Oct 20, 2007
Messages
32
The trigger is meant to fire off like this:
When the ability is cast, the target's health drains for 10 seconds or until it dies. When the unit dies, every unit in a 200 radius is damaged for 1/10th the caster's current mana.
Now, that's all done, but there are 2 things that I can't do:

one: make it only damage enemies

two: give the "explosion" an effect.

My dummy for this is called "dummy explosion", and the trigger looks like this:

Events:
Unit - A unit Begins casting an ability

Conditions:
(Ability being cast) Equal to Ignition

Actions:
Wait until (((Target unit of ability being cast) is dead) Equal to True), checking every 0.10 seconds
Unit - Create 1 dummy explosion for (Owner of (Casting unit)) at (Position of (Dying unit)) facing Default building facing degrees
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
Wait 1.00 seconds
Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type dummy explosion) and do (Unit - Remove (Picked unit) from the game)


For some reason the dummy won't even spawn. Any ideas?
 
This got me earlier (I think its the same problem)

It seems "casting unit" doesnt like to hang around through wait commands, I was able to fix mine by setting it to a variable at the top of my function.
 
First thing, don't triple post. Use the edit button. Second thing, use
  • tags. They help.
  • Search in the tutorial section for stuff about variables.
  • To pick only enemy units add an If - Then - Else under the group thing and add a "(Picked Unit is an ally of Casting Unit) equal to False" or something like that.
  • As for the special effect you just use the Special Effect stuff.
  • I also highly suggest you look up a tutorial about "leaks". Your trigger leaks like crazy at the moment, which is a very bad thing.
 
Status
Not open for further replies.
Back
Top