| 02-29-2008, 03:49 PM | #1 |
I'm making a trigger enchanted spell that creates a unit (a bomb). How can I make the trigger detect the of what level the ability is so that it can place the right bomb? |
| 02-29-2008, 04:10 PM | #2 |
| 02-29-2008, 04:48 PM | #4 |
Try changing: Events Unit - A unit Begins channeling an ability To: Events Unit - A unit Begins casting an ability |
| 02-29-2008, 04:59 PM | #5 |
I've tried that, none of the ability events seem to work. |
| 02-29-2008, 06:08 PM | #6 |
Waits can be bad sometimes, i've experienced several times when a wait halts a whole trigger, so test without it. |
| 02-29-2008, 06:12 PM | #7 |
If I don't rememember wrong the lowest wait you can have is 0.27 and when you try to wait 0.25 it maybe fucks up. |
| 02-29-2008, 06:32 PM | #8 |
The lowest wait you can have is in practice 0.1. Any wait value is fine, but waits are inaccurate, and won't go below 0.1 (average), no matter what you put in. The problem is the wait. Casting unit function doesn't work after a wait. Change it to triggering unit and it will work. |
| 03-01-2008, 09:48 AM | #9 |
Sry doesn't work, would it help to know that the ability is based on immolation? |
| 03-01-2008, 03:11 PM | #10 |
I can't really think of why it won't work how you described, but here's your testmap with a working solution for your spell. I removed the wait from your trigger, replaced it with a 1sec casttime in the spell and I changed the event and the condition of your "detonate Mine" trigger. If you have any questions regarding my changes feel free to ask. |
| 03-01-2008, 03:30 PM | #11 |
Thank you, thank all of you, wc3campagins is really a helpfull place! |
| 03-02-2008, 07:27 AM | #12 |
| 03-02-2008, 08:26 AM | #13 |
it only leaks if you just let the variable sit there and dont do anything with it i think if you reuse it or null it it doesnt leak again i think |
| 03-02-2008, 04:37 PM | #14 |
Gorman's thing is leaking a location, but global variables do not leak. |
