Okay so in case anyone googles this, here is how I've done it.
- you will need a dummy unit that is being created, casts bloodlust on you, then is being destroyed again. (
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=26751) (or google how to make a dummy unit)
- Make a new spell and base it on bloodlust. Give it to your dummy unit. make it 2 (depends on how many levels you want, then change it) levels.
The spell needs 99999 cast range, 0 mana cost, 0 casting time, no tech tree dependencies. In "Stats-Buffs" you can put in a custom made Buff(just copy the bloodlust buff, then customize it). make a few of them and add numbers, to see ingame whether its using the correct one. (but u also need to put them in the correct field of your bloodlust spell) (this buff is on your hero)
- make the skill for the hero, based on slow poison (nightelf dryad). Change whether u want it to decrease move/attack speed, deal dmg or not. (if not put values on 0). set "stats - hero ability" to true.
- For the hero skill u need to make 2(depends on lvls) buffs. base them of the slow poison buff and number them, too so u can choose the correct one in the triggers later. (this buff is gonna be on your enemy)
- thats how my trigger looks like. it checks whether the (de-)buff is lvl 1 or 2, then sets the lvl of the bloodlust skill to 1 or 2.
-
Frostmourne lvl 1
-
Events
-
Unit - A unit Is attacked
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Attacked unit) has buff Frostmourne (level 1)) Equal to True
-
Then - Actions
-
Set loc = (Position of (Attacked unit))
-
Unit - Create 1 DummyFrostmourne (Custom Campaign) for (Owner of(Attacking unit)) at loc facing Default building facing degrees
-
Unit - Set level of Bloodlust dummyspell for (Last created unit) to 1
-
Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Attacking unit)
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Custom script: call RemoveLocation(udg_loc)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Attacked unit) has buff Frostmourne (level 2)) Equal to True
-
Then - Actions
-
Set loc = (Position of (Attacked unit))
-
Unit - Create 1 DummyFrostmourne (Custom Campaign) for (Owner of(Attacking unit)) at loc facing Default building facing degrees
-
Unit - Set level of Bloodlust dummyspell for (Last created unit) to 2
-
Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Attacking unit)
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Custom script: call RemoveLocation(udg_loc)
-
Else - Actions
So another update. It shouldn't leak and the variable is "name=loc" & "type=point"
Kind regards and thanks to rulerofiron99 again
updated 3/12/2012