Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I have given "eat tree" ability some hero.But we can use it with right click on tree.I just wanna use it hotkey or left click on ability then tree.Can we remove it?
Maybe I'm wrong but last time I tried to use channel with a tree target it didn't work so I used sentinel (huntress ability) and since its tree eat anyway the own scout will just die instantly anyway and then you have to trigger the heal-- Either have a dummy cast something like rejuvenation on the triggering unit or add them to a unit group and set life periodically.
I have a different question.Forum can be dirty.So, i don't wanna open different topic.Whenever our HP is lesser than 25%, hero gains HP regeneration.Sometimes noone hit the hero.Naturally regen ability can't add to hero.I wanna make it without "unit-a unit is attacked event".
And the "set level of ability for unit" trigger doesn't work.Do you know why?
Guardian Regen
Events
Map initialization
Conditions
Actions
Set PLRAbil[1] = Guardian's Regeneration-[E]
Set PLRRegAbil[1] = Guardian's Loop
Set PLRAbils = 1
Guardian Regen Loop
Events
Unit - A unit Is attacked
Conditions
Actions
For each (Integer PLRLooper) from 1 to PLRAbils, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of PLRAbil[PLRLooper] for (Triggering unit)) Greater than 0
(Percentage life of (Triggering unit)) Less than or equal to 50.00
((Triggering unit) is in RegGroup) Equal to False
Then - Actions
Unit - Add PLRRegAbil[PLRLooper] to (Triggering unit)
Unit - Set level of PLRRegAbil[PLRAbils] for (Triggering unit) to (Level of PLRAbil[PLRAbils] for (Triggering unit))
Unit Group - Add (Triggering unit) to RegGroup
Trigger - Turn on Guardian Regen Loop2 <gen>
Else - Actions
Guardian Regen Loop2
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Set TempInt = 0
Unit Group - Pick every unit in RegGroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Percentage life of (Picked unit)) Less than or equal to 50.00
Then - Actions
Set TempInt = (TempInt + 1)
Else - Actions
For each (Integer PLRLooper) from 1 to PLRAbils, do (Actions)
Loop - Actions
Unit - Remove PLRRegAbil[PLRLooper] from (Picked unit)
Unit Group - Remove (Picked unit) from RegGroup
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Periodic-pick everyone with that ability (if the function is ability based), or every Hero of that type (if the hero is only one) and check if life is less than or equal to 25%.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.