• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Eat Tree Right Click Problem

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2013
Messages
1,105
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.
 
Level 5
Joined
Jul 30, 2012
Messages
93
That's okey now, i did it with dummy method.

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)
        • If - Conditions
          • TempInt Equal to 0
        • Then - Actions
          • Trigger - Turn off (This trigger)
        • Else - Actions
Sorry for English.Thank you!
 
Status
Not open for further replies.
Top