or just use fountain of life aura (% max life)
The editor only allows two decimal places, but you could trigger the heal on units with the buff, using ((Life of (Picked unit)) / 500) as the heal amount.
sure. but the difference is unnoticeable. then again it depends on the range of stats in your game, the ratio between damage and HP and how long a battle between 2 units could take place.
On a side note I would suggest fixed values instead such as 3HP per second.
EDIT: Just so we're clear...I contradict myself when i say "then again"
uhmmm its more laggy because you are creating a group with a ton of units at once, it runs 2 times every second for every single unit on the team, so thats a TON of calls if you have a lotta units...
do this instead:
Trigger:
- Life Aura Team 1
- Events
- Periodic Event - Every 1.00 seconds
- Conditions
- Actions
- Unit Group - Pick every unit in Temp_Group_Team1 and do (Actions)
- Loop - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Max life of (Picked unit)) x (0.10 x 0.02)))
Trigger:
- Add units to group
- Events
- A unit enters playable map area
- Conditions
- Owner of (Triggering unit) is equal to Player 11 (Dark Green)
- Actions
- Unit Group - Add (Triggering unit) to Temp_Group_Team1
Trigger:
- Unit Dies Trigger
- Events
- A unit dies
- Conditions
- (Triggering unit) is in Temp_Group_Team1 is true
- Actions
- Unit Group - Remove (Triggering unit)
Its true 3HP per second could be too good at first but then not so good later on. However the same goes for shockwave which deals 75>150>225>300 damage.
Anyway, here's what I would do.
Trigger:
- Life Regeneration Aura
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Set zz_UnitGroupA = (Units in (Playable map area) matching (((Matching unit) has buff Life Regeneration Aura) Equal to True))
- Unit Group - Pick every unit in zz_UnitGroupA and do (Actions)
- Loop - Actions
- Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) + 0.02)%
- Custom script: call DestroyGroup (udg_zz_UnitGroupA)
EDIT: It "is" an aura right? I noticed that the restoration is restoring all units owned by Player 11 (which i assume to be a creep player?)
That reminds me...save for a new thread.
Anyway, isn't this trigger for an aura ability?