I am trying to make a trigger that every time certain unit type kills a unit it will heal a random unit for that persons team for 100health.
I tried
Event- Unit dies
Condition= owner of killing unit equal to (my unit that heals when he kills)
Action
Set life of random unit owned by owner of killing unit to life of random unit owned by killing player +100
but I need to make sure its a unit that's even missing health, as of now it don't even seem to work half the time.
and as far as the tooltip thing, you know how abilities will say the damage of the ability because it uses the code of the ability (so you don't need to update the tooltip every single time you change something)
for example Bash says
Gives a <AHbh,DataA1>% chance
Well is there a way to make it so you can reference a different ability/unit?
For example I have an ability that summons a unit, and I want the tooltip of my Summon ability to show the damage/health/attack speed of the unit it summons.
I thought if I just simply put the code for my unit it would work, but it comes up as 0 for most fields
for example my custom unit code is h000:hfoo I can get the HP field (HP) to work but not the move speed, attack speed or damage fields
so <h000:hoof,HP> it will display the units health, so that's good works as normal I never have to update
but <h000:hoof,cool1> doesn't
<h000:hoof,dmgplus1> doesn't
<h000:hoof,spd> doesn't
I tried
Event- Unit dies
Condition= owner of killing unit equal to (my unit that heals when he kills)
Action
Set life of random unit owned by owner of killing unit to life of random unit owned by killing player +100
but I need to make sure its a unit that's even missing health, as of now it don't even seem to work half the time.
and as far as the tooltip thing, you know how abilities will say the damage of the ability because it uses the code of the ability (so you don't need to update the tooltip every single time you change something)
for example Bash says
Gives a <AHbh,DataA1>% chance
Well is there a way to make it so you can reference a different ability/unit?
For example I have an ability that summons a unit, and I want the tooltip of my Summon ability to show the damage/health/attack speed of the unit it summons.
I thought if I just simply put the code for my unit it would work, but it comes up as 0 for most fields
for example my custom unit code is h000:hfoo I can get the HP field (HP) to work but not the move speed, attack speed or damage fields
so <h000:hoof,HP> it will display the units health, so that's good works as normal I never have to update
but <h000:hoof,cool1> doesn't
<h000:hoof,dmgplus1> doesn't
<h000:hoof,spd> doesn't