| 05-10-2006, 06:41 AM | #1 |
ok, since Doom is hardcoded to not work on creeps above level 5, and it seems I can't change that through the use of the object editor or the gameplay constants; I decided to trigger the spell. However I can't think of any way to detect a buff on a unit that's all ready dead. I tried this trigger and it didn't work. Trigger: If anyone knows how I can detect when A dying unit has a buff, it would be greatly apreciated. |
| 05-10-2006, 07:37 AM | #2 |
| 05-10-2006, 08:12 AM | #3 |
ya i tried that. my trigger has a text message in the actions, but i didn't post it cause it wasn't relevant. |
| 05-10-2006, 08:18 AM | #4 |
So it shows TEST? If so, just run the other triggers! ![]() |
| 05-10-2006, 08:49 AM | #5 | |
Quote:
No, he means it doesn't; he knows it doesn't work because his test message was not shown. What you do is, whenever Doom gets cast, attach a custom value to the target unit (you'll want the owner of the caster in there) via a gamecache. Then when it dies, check this data instead of the buff. You can ignore the buff completely; it will only be for show. |
| 05-10-2006, 09:17 AM | #6 |
A dying unit cannot be detected trought a buff. You can simple avoid this problem by using variabiles: - A unit starts the effect of Doom - Set "VarDoomer" -> Casting Unit - Set "VarDoomed" -> Target ... - "VarDoomed" dies -> All the triggers you want! U can use abilities such as "Soul Burn" or "Unholy Frenzy + Silence" to emulate Doom, just remember that they're dispellable, Doom is not! Oh, another thing! You can use an array instead of a single variabile if the cooldown of the spell is quite short, avoiding overlapping problems. |
| 05-10-2006, 10:49 AM | #8 |
There is a spell called Parasite which has almost the same effect of Doom with an exception that it wont silence the target. Maybe you can try that for your case. |
| 05-10-2006, 11:57 AM | #9 |
Ya I thought of parasite after I had allready solved my problem. That probably would have required a dummy unit casting silence in order to emulate the doom effect. I'll keep that in consideration if I decide I want the demons to spawn from heroes as well. |
| 05-10-2006, 01:58 PM | #10 |
Also if you want it to be unremoveable, I'm sure theres a way to check if the unit loses the buff and then readd it with a dummy unit. |
