Warcraft III resources & community, 2003–2006 · archived

(Need some triggering help)

13 posts
#1

(Need some triggering help)

Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Moral Drop
Actions
Unit - Kill (Triggering unit)

What I am trying to do is whenever I click the ability (On the unit) it kills it self and I do not wan't this. I wish for the unit to -die when the ability `Stops` or `Finishes casting` not when I just clicked to start the casting.

Whats wrong here..
#2
then do it a little different:

event:
same
condition:
same
action:
unit - add a 0.25 second expiration time to (casting unit)
that way the unit has 0.25 seconds to cast the spell and will die directly afterwards.
it works for me - i'm using this too ^^
#3
Like so?

Actions
Countdown Timer - Start (Expiring timer) as a Repeating timer that will expire in 0.25 seconds
Unit - Kill (Triggering unit)
#4
no
Unit - Add expiration Timer

This gives the unit that expiration timer summoned units have in general.
#5
Actions
Unit - Add a 0.25 second Generic expiration timer to (Triggering unit)
Unit - Kill (Triggering unit)

Okay. I did this and the unit still dies.

Or should the Action look like this?

Actions
Unit - Add a 0.25 second Generic expiration timer to (Triggering unit)
#6
Okay it seems by removing the

Actions
Unit - Add a 0.25 second Generic expiration timer to (Triggering unit)
Unit - Kill (Triggering unit)

And by leaving just the what is in yellow the unit still dies.

Let me try to be more clear about what my goal here is.

I am using "Immolation" ability to be casted on a unit to drain the mana. Once the mana has been drained, a trigger will run and kill the unit for the mana being drained. Now, I do not wish for the unit to die once I first click the ability and the mana has not been drained.
#7
then you might to the trigger a little different:

1st possibility
modify
set the time for the expiration timer = the time required to drain the mana.

2nd possibility
remake
Once you cast imolation on a unit, set it's custom value = 1
Once you stop, set it = 0
Run a trigger:
'every 1 second' - 'pick every unit matching - custom value(matching unit) = 1' - 'if mana = 0 then kill picked unit'


thats the easiest (or at least fastest to explain) triggers.
alternativly you can do some jass, but i'll not type down the trigger - GUI should be enough.

- Raszul
#8
Look at me..I'm stupid when it comes to reading this advance triggering crap. Could you translate whatever you said in better terms? like where goes where such as

Event
Condition
Action that sort of thing.
#9
Events
Unit - A unit Stops casting an ability
Conditions
((Ability being cast) Equal to Moral Drop ) and ((Mana of (Triggering unit)) Equal to 0.00)
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit - Kill (Triggering unit))

This is the only thing I could come up with for what you have wrote.
#10
Wouldnt you not need to make the triggering unit it kills since the caster is the triggering unit?
#11
????
#12
Your trying to make a ohko attack arnt you?
#13
Thank you for all your efforts to help, I have found away around this problem. I am no longer up the creek without a patle. Instead of using a 'trigger' that takes brains to figue out, I instead finaly found a ability that could offer the same idea and I used it. It only took me 2 days to find out how to edit the abilitys to where they function to where I wan't them.

Its not perfect, but it will have to do for now.

Again - Thank you for your efforts they are most helpful although did not get anywhere.

-Nydedrigan.