Hi all
Probably this has been asked and solved a lot of times, still i didn't find it here, at least not with the search words i tried - and they were many.
I created an item that shall loose a charge when the player clicks it in inventory. The item itself doesn't do anything directly, but it shall trigger the 'item manipulated' event. But it doesn't if it's just clicked, instead it seems to need an ability bound to it, to trigger the event. I copied some abilities and noticed, that some trigger the event but others don't. And those that do have unwished side effects. I tried heal and mana potions as a base, but this works only if the hero hasn't full health/mana. I tried others that still have a grafical effect, i even tried invisibility and set the time-value to 0, but the hero still becomes invisible after using the item. I read here in the forum, that people seem to use an ability called 'channel'. Unfortunately i have the german WC3 version and don't find the german 'channel'-equivalent. I thought it might be the bloodelf heroe's flamestrike spell, but this one brings up an area-cursor after clicking the item. Anyone who can help me with that issue?
Another problem with which i didn't test a lot yet: If the item used all its charges, the item stays in inventory. Not usable anymore, but it's still there, without a charges-number displayed anymore. But it doesn't disappear, like e.g. a heal potion would. (Did i choose the wrong base-item?)
Thanks for any help...
whisp
Probably this has been asked and solved a lot of times, still i didn't find it here, at least not with the search words i tried - and they were many.
I created an item that shall loose a charge when the player clicks it in inventory. The item itself doesn't do anything directly, but it shall trigger the 'item manipulated' event. But it doesn't if it's just clicked, instead it seems to need an ability bound to it, to trigger the event. I copied some abilities and noticed, that some trigger the event but others don't. And those that do have unwished side effects. I tried heal and mana potions as a base, but this works only if the hero hasn't full health/mana. I tried others that still have a grafical effect, i even tried invisibility and set the time-value to 0, but the hero still becomes invisible after using the item. I read here in the forum, that people seem to use an ability called 'channel'. Unfortunately i have the german WC3 version and don't find the german 'channel'-equivalent. I thought it might be the bloodelf heroe's flamestrike spell, but this one brings up an area-cursor after clicking the item. Anyone who can help me with that issue?
Another problem with which i didn't test a lot yet: If the item used all its charges, the item stays in inventory. Not usable anymore, but it's still there, without a charges-number displayed anymore. But it doesn't disappear, like e.g. a heal potion would. (Did i choose the wrong base-item?)
Thanks for any help...
whisp