I've been tryung ti do this, I want to create a spelcaster that doesn't regenerate energy, but must drain energy from other units to gain energy, like the obsidian destroyer in Warcraft 3, I want to replicate the absorb mana ability they had.....But I can't seem to get it right, it removes HP equivilent to the energy left in the unit, when I use leech energy.
How can I drain energy without damaging the unit in question?
You based it on the Infestor - Leech (Drain Energy) buff right? That is probably the problem in that the buff deals damage and drains the energy by leeching energy from the damage dealt. You need to use a create healer effect that recharges energy and costs energy that goes from the target to the caster.
I've been tryung ti do this, I want to create a spelcaster that doesn't regenerate energy, but must drain energy from other units to gain energy, like the obsidian destroyer in Warcraft 3, I want to replicate the absorb mana ability they had.....But I can't seem to get it right, it removes HP equivilent to the energy left in the unit, when I use leech energy.
How can I drain energy without damaging the unit in question?
You based it on the Infestor - Leech (Drain Energy) buff right? That is probably the problem in that the buff deals damage and drains the energy by leeching energy from the damage dealt. You need to use a create healer effect that recharges energy and costs energy that goes from the target to the caster.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
I've also tried a create healer effect, but it doesn't work with negative values.
No, you don't have to use negative, just make it from target to caster.
@Mattlington: Go
and how do I do that, exactly?
@Quirriff: Go
You change the flag from target to caster? Should be pretty easy to find, just search "target" in the search bar and you will find the right one.
Great to be back and part of the community again!
It worked...Now i have to worry about sfx for the ability but i'll worry about that later.