- Joined
- Jul 21, 2019
- Messages
- 177
Hello, i made an ability that gives bonus attack damage to the hero for every enemy unit it kills, it stacks up to ten times, everything works as intended but i need to make it so it loses the effect after 10 seconds without killing an unit, here are the triggers:
For the stacking part, i made an integrer variable
Here is a sample of the damage bonus being added to the unit (won't post all the triggers because they are a lot):
Thanks in advance!
EDIT: in order to avoid double posting, i will make my second request on this same thread:
I have one small gripe with this ability, when you have some bonus damage already stacked at the time you learn the next level of the ability, it doesn't "update", like, level 1 gives +2 damage for each kill, so with it fully stacked it gives +20, but level 2 gives 3 damage for each kill, meaning +30 at 10 stacks, however, when you learn level 2 while already having stacks, the stacks have the bonus from level 1 (+20) even though your ability is level 2 (should be +30 now), i know it is because my trigger adds the bonus only when an unit is killed, but i don't know how to make it interact with the hero learning the next level, need help there too
For the stacking part, i made an integrer variable
-
BL Stacking
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Killing unit)) Equal to Tryndamere
- ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
- (Level of Bloodlust for (Killing unit)) Greater than or equal to 1
- BL_Stacks Less than 10
-
Actions
- Set BL_Stacks = (BL_Stacks + 1)
- Set BL_Killer = (Killing unit)
-
Events
-
BL Stack Cap
-
Events
- Time - Every 0.05 seconds of game time
-
Conditions
- BL_Stacks Greater than 10
-
Actions
- Set BL_Stacks = 10
-
Events
Here is a sample of the damage bonus being added to the unit (won't post all the triggers because they are a lot):
-
BL 1 Stack LVL 1
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Killing unit)) Equal to Tryndamere
- ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
- (Level of Bloodlust for (Killing unit)) Equal to 1
- BL_Stacks Equal to 1
-
Actions
- Unit - Set level of Bloodlust Damage Bonus for BL_Killer to 2
-
Events
-
BL 0 Stack
-
Events
- Time - Every 0.05 seconds of game time
-
Conditions
- BL_Stacks Equal to 0
-
Actions
- Unit - Set level of Bloodlust Damage Bonus for BL_Killer to 1
-
Events
-
BL Heal LVL 1
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Bloodlust
- (Level of Bloodlust for (Triggering unit)) Equal to 1
-
Actions
- Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Real(BL_Stacks)) x 30.00))
- Set BL_Stacks = 0
- Unit - Set level of Bloodlust Damage Bonus for (Triggering unit) to 1
-
Events
Thanks in advance!
EDIT: in order to avoid double posting, i will make my second request on this same thread:
I have one small gripe with this ability, when you have some bonus damage already stacked at the time you learn the next level of the ability, it doesn't "update", like, level 1 gives +2 damage for each kill, so with it fully stacked it gives +20, but level 2 gives 3 damage for each kill, meaning +30 at 10 stacks, however, when you learn level 2 while already having stacks, the stacks have the bonus from level 1 (+20) even though your ability is level 2 (should be +30 now), i know it is because my trigger adds the bonus only when an unit is killed, but i don't know how to make it interact with the hero learning the next level, need help there too
Last edited: