Hi Wietlol, can you look at this triggers if see if there's anything wrong?
Courage
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Courage for UnitCreation_Unit) Greater than 0
Then - Actions
Custom script: call EOT_Set_Default_Variables()
Set EOT_Param_Ability = Courage (Attack Damage Bonus)
Set EOT_Param_Hidden = True
Set EOT_Param_Interval = 0.50
Set EOT_Param_Is_Passive = True
Set EOT_Param_Source = UnitCreation_Unit
Set EOT_Param_Target = EOT_Param_Source
Set TempAbility = Courage
Custom script: set udg_TempInteger = udg_TempAbility
Set EOT_Param_Type = TempInteger
Trigger - Run EOT_Trigger_Create_EOT (ignoring conditions)
Else - Actions
Courage Loop
Events
Game - EOT_Event_On_Interval becomes Equal to 0.00
Conditions
Actions
Set TempAbility = Courage
Custom script: set udg_TempInteger = udg_TempAbility
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EOT_Param_Type Equal to TempInteger
EOT_Param_Subtype Equal to 0
Then - Actions
-------- Attack Damage Bonus --------
Set TempLocation = (Position of EOT_Param_Target)
Set TempPlayer = (Owner of EOT_Param_Target)
Set TempGroup = (Units within (Current acquisition range of EOT_Param_Target) of TempLocation matching (((Matching unit) belongs to an enemy of TempPlayer) Equal to True))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
((Picked unit) is alive) Equal to False
Then - Actions
Unit Group - Remove (Picked unit) from TempGroup
Else - Actions
Set EOT_Param_Ability_Level = ((Number of units in TempGroup) + 1)
Custom script: call RemoveLocation(udg_TempLocation)
Custom script: call DestroyGroup(udg_TempGroup)
-------- Armor Bonus --------
Set TempGroup_2 = (Units within (Current acquisition range of EOT_Param_Target) of TempLocation matching (((Matching unit) belongs to an ally of TempPlayer) Equal to True))
Else - Actions
Unit Group - Pick every unit in TempGroup_2 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
((Picked unit) is alive) Equal to False
Then - Actions
Unit Group - Remove (Picked unit) from TempGroup
Else - Actions
Set EOT_Param_Ability_Level = ((Number of units in TempGroup_2) + 1)
Custom script: call DestroyGroup(udg_TempGroup_2)
Its the courage ability that I ask you About a long time ago. It increases the hero's attack damage for each enemy hero and increases his armor for each allied hero. It already increases his attack, I know how to do the same in increasing the armor though I think I got a problem here. This variable ''Set EOT_Param_Ability'' is already set for this ability ''Courage (Attack Damage Bonus)''
Should I just create another variable like ''Set EOT_Param_Ability_2'' for ''Courage (Armor Bonus)''