+20% Strenght/Agility bonus AURA

Ayanami

칼리
Reaction score
288
Spotted a mistake. This extra quotation mark should be there.

Code:
Custom script: call SaveInteger( udg_SoEHashtable, StringHash([COLOR="Red"]"[/COLOR]agi"), GetHandleId(GetEnumUnit()), udg_Agility)
 

jarekpl12

TH.net Regular
Reaction score
6
y.. i figure it out that was mistake but still something is wrong with
Trigger:
  • Custom script: call SaveInteger( udg_SoEHashtable, StringHash("str"), GetHandleId(GetEnumUnit()), udg_Strength)


ah lol i found... not udg_Strength... udg_Strenght... thank you so much + rep
 

jarekpl12

TH.net Regular
Reaction score
6
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)
 

Ayanami

칼리
Reaction score
288
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)

You didn't copy the whole trigger. You're missing few parts. Refer back to my trigger.
 

jarekpl12

TH.net Regular
Reaction score
6
sry... thats the full trigger I made... this one doesn't change anything:(

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 to TempInt
              • Custom script: set udg_TempInt = LoadInteger(udg_SoEHashtable, StringHash("agi"), GetHandleId(GetEnumUnit()))
              • Set Agility = (((Agility of (Picked unit) (Exclude bonuses)) - TempInt) / 5)
              • Set TempInt = (((Agility of (Picked unit) (Exclude bonuses)) - TempInt) + Agility)
              • Hero - Modify Agility of (Picked unit): Set to 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) (Exclude bonuses)) - TempInt)
              • Hero - Modify Strenght of (Picked unit): Set to TempInt
              • Custom script: set udg_TempInt = LoadInteger(udg_SoEHashtable, StringHash("agi"), GetHandleId(GetEnumUnit()))
              • Set TempInt = ((Agility of (Picked unit) (Exclude bonuses)) - TempInt)
              • Hero - Modify Agility of (Picked unit): Okre?›l jako TempInt
              • Unit Group - Remove (Picked unit) from CheckGroup
      • Custom script: call DestroyGroup (udg_StrenghtOfEarthGroup)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top