Custom script: call SaveInteger( udg_SoEHashtable, StringHash([COLOR="Red"]"[/COLOR]agi"), GetHandleId(GetEnumUnit()), udg_Agility)
I checked this... agility is growing up per every 0.10 sec till some value and is starting again from 0. Some like that 1,2,3,4,5...30,31,1,2,3,4,5.... Did i do something wrong?
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 Hero) Equal to True))))
- Unit Group - Pick every unit in StrenghtOfEarthGroup and do (Actions)
- Loop - Actions
- Set TempInt = ((Strenght of (Picked unit) (Exclude bonuses)) / 5)
- Custom script: call SaveInteger( udg_SoEHashtable, StringHash("str"), GetHandleId(GetEnumUnit()), udg_TempInt)
- Hero - Modify Strenght of (Picked unit): Add TempInt
- Set TempInt = ((Agility of (Picked unit) (Exclude bonuses)) / 5)
- Custom script: call SaveInteger( udg_SoEHashtable, StringHash("agi"), GetHandleId(GetEnumUnit()), udg_TempInt)
- Hero - Modify Agility of (Picked unit): Add TempInt
- Unit Group - Add (Picked unit) to CheckGroup
- 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
- Custom script: set udg_TempInt = LoadInteger(udg_SoEHashtable, StringHash("str"), GetHandleId(GetEnumUnit()))
- Set Strenght = (((Strenght of (Picked unit) (Exclude bonuses)) - TempInt) / 5)
- Set TempInt = (((Strenght of (Picked unit) (Exclude bonuses)) - TempInt) + Strenght)
- Hero - Modify Strenght of (Picked unit): Set TempInt
- Custom script: call SaveInteger( udg_SoEHashtable, StringHash("str"), GetHandleId(GetEnumUnit()), udg_Strenght)
- Custom script: call SaveInteger( udg_SoEHashtable, StringHash("agi"), GetHandleId(GetEnumUnit()), udg_Agility)
- Else - Actions
- Custom script: set udg_TempInt = LoadInteger(udg_SoEHashtable, StringHash("str"), GetHandleId(GetEnumUnit()))
- Set TempInt = ((Strenght of (Picked unit) (Exlude bonuses)) - TempInt)
- Hero - Modify Strenght of (Picked unit): Set TempInt
- Set TempInt = ((Agility of (Picked unit) (Exclude bonuses)) - TempInt)
- Hero - Modify Agility of (Picked unit): Set TempInt
- Unit Group - Remove (Picked unit) from CheckGroup
- Custom script: call DestroyGroup (udg_StrenghtOfEarthGroup)