- Joined
- Jul 5, 2014
- Messages
- 550
Again I seem stuck. Is it possible to create a spell (buff) that gives a unit temporary life-steal? Vampiric aura badly resist my attempts to turn it into an active ability.
There's the Vampiric Potion ability. It's temporary, adds damage, and life steal (either flat value or %).
call BJDebugMsg(GetUnitName(GetTriggerUnit())+": "+I2S(GetIssuedOrderId()))
call IssueImmediateOrderById(unit_var, order_id)
Check the tutorial in my sig below "hiw to post triggers"Thanks, I'll give it a try.
Edit: As I looked at the damage detection, I've got an idea and I've ducktaped together a trigger that partially working. (I'm dummy can't find the option to show trigger)
I gave a trigger that upon starting an effect of ability (which is the dummy acid bomb), the target gets a lifesteal ability (based on the vampiric aura that only works on self).
But removing is more problematic. Firstly, I don't know how to hide the ability from showing up. Secondly, trying to remove it once the dummy ability wear off is glitchy (it instantly removed it when I gave an if/then/else trigger to do so).
The magic number for position is X: 0, Y: -11, by the way. You hold shift when double clicking the Y position to set it to -11.
Also, abilities can be put on anything, whether they're an item ability or not. Not all item abilities show an icon when used on a unit or hero, but spellbook does. And you can use the above posted tutorial to make it hide icons, if you don't feel like using the magic number method or the new trigger native.
I modified my Temporary Ability System (instead of counting down timers only, now it also checks for the buff on the unit) to achieve what you want (able to be Dispelled).
If you want to modify the value for the Lifesteal, edit the Life Steal ability under Custom Abilities -> Neutral Hostile -> Units.
You can find the testing map attached to my post.
Ah thanks, I tried shift when I was already in it. That solved the showing up issue.
Wow, that triggering is pretty complex, but the overall result looks and works better than my own version. However, wouldn't it be easier to set the position of the ability to -11 instead of triggering a spellbook?
Edit: I may missing something, but using the frostmourne lifesteal (that has no buff nor ability icon) actually solved multiple issues (not working on ranged units, having double buff show up). It also seem to lack the need for complex triggers other than unit group and adding ability that tied to the dummy buff. Should have used frostmourne from the beginning :'D Nevertheless, it wouldn't have worked without your help, if anyone knows a possible problem with my lazy version compared to defskull's more complex triggers, please let me know. In the meantime I distribute some reputations. Thanks again.
Once again, my brain fails me haha, guess I was too much getting used on using Channel for every custom ability, I forgot you can just use the Bloodlust to cast the spell (and apply buff), and add the ability via triggers, @@"Actually I don't need a dummy for that one. I tied the ability to a dummy buff, using Light's trigger. The buffer unit casts the dummy buff, the target gets the ability and when the target no longer has the dummy buff (dispel or end of duration), the trigger removes the ability.
Which problem was this ?I just wish I could solve similarly the spell shield spell (because it has no reference to cast it via dummy unit and using it directly make my cursor disappear.