Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Unit is attacked
Conditions Attacked unit has an buff/Attacked unit type equals *your_unit*
Action

set *ability_unit* = attacked unit

If/then/else

If life of attacked unit equal or lower than attacked units life x 0.65

Then Ability Remove *ability1* from attacked unit


Ability add *ability2* to attacked unit

Else do nothing

If life of attacked unit equal or lower than attacked units life x 0.55

Then Ability Remove *ability2* from attacked unit


Ability Remove *ability1*(if it has it somehow) from attacked unit


Ability add *ability3* to attacked unit

Else do nothing

If life of attacked unit equal or lower than attacked units life x 0.45

Then Ability Remove *ability3* from attacked unit


Ability Remove *ability1*(if it has it somehow) from attacked unit


Ability Remove *ability2*(if it has it somehow) from attacked unit


Ability add *ability4* to attacked unit

Else do nothing
Every 1 second of game
Conditions
Actions

If life of *ability_unit* equal or greater than *ability_unit* units life x 0.45

Then Ability Remove *ability4* from attacked unit


Ability Remove *ability1*(if it has it somehow) from *ability_unit*


Ability Remove *ability2*(if it has it somehow) from *ability_unit*


Ability add *ability3* to *ability_unit*

Else do nothing

If life of *ability_unit* equal or greater than *ability_unit* units life x 0.55


Then Ability Remove *ability3* from attacked unit



Ability Remove *ability4*(if it has it somehow) from *ability_unit*



Ability Remove *ability1*(if it has it somehow) from *ability_unit*



Ability add *ability2* to *ability_unit*
Else do nothing

If life of *ability_unit* equal or greater than *ability_unit* units life x 0.65


Then Ability Remove *ability2* from attacked unit



Ability Remove *ability4*(if it has it somehow) from *ability_unit*



Ability Remove *ability3*(if it has it somehow) from *ability_unit*



Ability add *ability1* to *ability_unit*
Else do nothing
Events

Unit - A unit Is attacked
Conditions

Unit-type of (Attacked unit) Equal to Berserker
Actions

Set bloodhero=(Attacked unit)

If (All Conditions are True) then do (Then Actions) else do (Else Actions)


If - Conditions



(Life of bloodhero) Less than or equal to ((Life of bloodhero)x(0.35+(0.10x(Real((Level of Blood Hunger for bloodhero))))))


Then - Actions



Unit - Set level of Novice Skills berserker forbloodhero to (1+(Level of Blood Hunger for bloodhero))


Else - Actions



Do nothing
You can Make a custom engineering update (lets call it E ability)
put it in a disabled spell book and give that spell book to your hero
in Level 1 it turns B to A (B is the one at lower than % or whatever its)
in Level 2 it turns A to B
When Unit Learns Ability
If its C ability(the one allows you to change abilities)
Add it to YHTA group
Every Second
Pick Every Units in YHTA group
if Picked Units Health is Bellow %(35+(Level of C for Picked Unit)*10)
then
Set Level of E for Picked Unit to 2
else
Set Level of E for Picked Unit to 1
simple no jass no leaks
I will try to make same kind of spell and post it.
I was trying to make it but it doesn't work, i am going to try a difrent aproach and see if it works, sorry to keep you waiting, difrent time zone + school = busy.
