| 01-05-2006, 03:46 PM | #1 |
I was wondering is there a way so that when a unit dies off certain aura the Hero with aura. For example if a unit dies under the effect of Death Aura the hero(owner of aura) gets 10/20/30/40% of dying units life?! |
| 01-05-2006, 03:56 PM | #2 |
Trigger: Well, I used Unholy Aura as an example. I think that using Event Response - Killing Unit causes a leak, so you should store the Killing unit in a variable and them remove it. Oh, and this triggers works for units killed under the effect of the aura, not ONLY by the aura. Hope it helped. |
| 01-05-2006, 04:30 PM | #3 |
killing unti causes no leak as far as i know. (its a unit, not a unit group.) and that will only work if the hero kills the unit. |
| 01-05-2006, 04:54 PM | #4 | |
Quote:
Really? The trigger just detects if a dying unit has a buff, i don't see how it would only work if the hero kills the unit. Anyway, that's just a poor sample to help Belphegor make his own trigger. Well, you could make it check if a dying unit is within a set range from the hero. And then increase the heroes's HP according to the level of his aura. |
| 01-05-2006, 05:39 PM | #5 |
The real problem with this would be multicastability, seeing how you can't have a trigger if unit enters in range of multi units. Maybe a array would do the trick, though I heavily doubt it. It was pretty much as I expected... |
| 01-05-2006, 05:42 PM | #6 |
That code doesn't work. You can't detect buffs on dead units. |
| 01-05-2006, 05:50 PM | #7 | |
Quote:
That's not true. After decay time the unit is removed automatically |
| 01-05-2006, 06:00 PM | #8 |
I am not quite sure about this. But if buffs are not available for dead units, try adding 1 more option to "Stats - Targets Allowed: Dead". Try giving it "Alive" also, just incase it only work for dead units. |
| 01-05-2006, 07:09 PM | #9 | |
Quote:
Excellent trigger noctune, but instead of Triggering unit, use dying unit. Also if that does not work because you cannot detect the buff on the unit because it is dead for any reason, you could always pick every unit in aura range and then use picked unit. This would work because units stay around after they die. |
| 01-05-2006, 07:33 PM | #10 |
I dont see whats so great with it, It will only work if the hero kills the unit and if I understood right he wants it so any unit can kill it. But maybe Im wrong :P |
| 01-05-2006, 07:40 PM | #11 | |
Quote:
The problem with that it aint multicastable then. I mean how does the trigger know which hero has the ability and to whom to give the dead units life? PS. Credits and rep to anyone that solves this one ![]() |
| 01-05-2006, 07:48 PM | #12 |
Trigger: Check this trigger out. I'm not really sure it's gonna work since i'm in a hurry here. I'll be back in a few hours Good luck. |
| 01-05-2006, 08:17 PM | #13 |
| 01-05-2006, 08:39 PM | #14 | |
That trigger you just posted is jibberish. Quote:
That does not work because it is looking for other units that have unholy aura, it also does not work because picked unit is supposed to be matching unit. Here is how it should be: Trigger: |
| 01-05-2006, 08:56 PM | #15 |
Belphegor, your trigger should work when you change the picked unit to matching unit as stated by the above poster. @Immoralis: If you read above, you would see that buffs cannot be detected on dead units. Your trigger will not work. Oh, dash cunning. Way to edit it out. |
