- Joined
- Aug 11, 2009
- Messages
- 605
I just have a basic ability that should increase damage by 50% for 10s. However, the problem is to also include item bonuses in this. Is there a way through triggers to do it? The ability (Battle Roar) currently looks like this:
EDIT: I changed the item level of all items that gave damage to the value of damage they give. Then changed triggers to this below. It works but maybe there is a better way to do it?
Thanks for any advice on this!
-
Zoro Ult
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to King of Hell (Zoro)
-
-
Actions
-
Set VariableSet U_Ult = (Triggering unit)
-
Set VariableSet Real_AbilityDamage = (0.50 x (Real((Base Damage of U_Ult for weapon index 0))))
-
Ability - Set Ability: (Unit: U_Ult's Ability with Ability Code: King of Hell (Zoro))'s Real Level Field: Damage Increase ('Nbr1') of Level: 0 to Real_AbilityDamage
-
-
EDIT: I changed the item level of all items that gave damage to the value of damage they give. Then changed triggers to this below. It works but maybe there is a better way to do it?
-
Zoro Ult
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to King of Hell (Zoro)
-
-
Actions
-
Set VariableSet U_Ult = (Triggering unit)
-
Set VariableSet Real_AbilityDamage = (Real((Base Damage of U_Ult for weapon index 0)))
-
For each (Integer Loop_Ult) from 1 to 6, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item level of (Item carried by U_Ult in slot Loop_Ult)) Greater than 0
-
(Current life of (Item carried by U_Ult in slot Loop_Ult)) Not equal to 6.00
-
-
Then - Actions
-
Set VariableSet Real_AbilityDamage = (Real_AbilityDamage + (Real((Item level of (Item carried by U_Ult in slot Loop_Ult)))))
-
-
Else - Actions
-
-
-
-
Set VariableSet Real_AbilityDamage = (Real_AbilityDamage / 2.00)
-
Ability - Set Ability: (Unit: U_Ult's Ability with Ability Code: King of Hell (Zoro))'s Real Level Field: Damage Increase ('Nbr1') of Level: 0 to Real_AbilityDamage
-
-
Thanks for any advice on this!
Last edited: