Hello... I got problem. I'm trying to make aura which adds 20% of BASE amount strenght and agility. When any hero recive aura's buff then let it add 20% strenght/agility and when aura's buff disappear then let it back to normal value i mean to value which had hero when he was reciving aura' buff. I made something like this but it's totaly failed. Can somone help me with this ability? thx
Trigger:
- Strenght of Earth aura
- Events
- Time - Every 0.10 seconds of game time
- Conditions
- Actions
- Set StrenghtOfEarthGroup = (Units in (Playable map area) matching ((((Matching unit) has buff Strenght of Earth Totem (aura)) Equal to True) and ((((Matching unit) is in CheckGroup) Equal to False) and (((Matching unit) is Bohater) Equal to True))))
- Unit Group - Pick every unit in StrenghtOfEarthGroup and do (Actions)
- Loop - Actions
- Set Strenght = ((Strenght of (Picked unit) (Exclude bonuses)) / 5)
- Set Agility = ((Agility of (Picked unit) (Exclude bonuses)) / 5)
- Hero - Modify Strenght of (Picked unit): Add Strenght
- Hero - Modify Agility of (Picked unit): Add Agility
- Unit Group - Add (Picked unit) to CheckGroup
- Loop - Actions
- Unit Group - Pick every unit in CheckGroup and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked unit) has buff Strenght of Earth Totem (aura)) Equal to False
- Then - Actions
- Hero - Modify Strenght of (Picked unit): Subtract Strenght
- Hero - Modify Agility of (Picked unit): Subtract Agility
- Unit Group - Remove (Picked unit) from CheckGroup
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Custom script: call DestroyGroup (udg_StrenghtOfEarthGroup)
- Events