- Joined
- Nov 4, 2006
- Messages
- 5
I'm making a map, and ive hit a speedbump, so i decided to tap the great pool of knowledge of this forum...
The problem is that im trying to make an ability that simulates a lichs phylactory. Once the custom Lich unit dies, another unit is summoned where he was (an immobile ward unit, the Phylactory, its got a bunch of negative auras on it causing havoc to enemies who come close) with a 15 sec timer on it, once the timer expires, it is destroyed and the lich is resurrected. But if the phylactory is destroyed by something else, the lich doesnt get revived. So far, so good, now here's the problem:
I need to be able to put a cooldown on the ability, like reincarnation, but if i use the reincarnation ability then the "Unit Dies" event doesnt work and i cant seem to figure out how to cancel it if the phylactory is destroyed even if i could get event to go off. Can anyone figure out the cleanest way that i can simulate those effects, while putting a cooldown on it, and cancelling it all if the phylactory is destroyed?
The problem is that im trying to make an ability that simulates a lichs phylactory. Once the custom Lich unit dies, another unit is summoned where he was (an immobile ward unit, the Phylactory, its got a bunch of negative auras on it causing havoc to enemies who come close) with a 15 sec timer on it, once the timer expires, it is destroyed and the lich is resurrected. But if the phylactory is destroyed by something else, the lich doesnt get revived. So far, so good, now here's the problem:
I need to be able to put a cooldown on the ability, like reincarnation, but if i use the reincarnation ability then the "Unit Dies" event doesnt work and i cant seem to figure out how to cancel it if the phylactory is destroyed even if i could get event to go off. Can anyone figure out the cleanest way that i can simulate those effects, while putting a cooldown on it, and cancelling it all if the phylactory is destroyed?