adding passive ability on an item if item is in inventory

Status
Not open for further replies.
Level 6
Joined
Sep 24, 2015
Messages
174
How to make a trigger (on) when i have a specific item

the trigger would be like this :

if attacked unit has 100% hps then add an passive ability on the item and if attacked unit has 30% hps left (turn off the trigger) (how to make a passive ability?)

the ability will be critical strike versus buildings...(also the building is a unit or?)
so turn on this trigger if hero manipulating has item type (my item)

need 2 triggers but don't really know how to start :/
 
Level 6
Joined
Sep 24, 2015
Messages
174
my question is now how to make an ability being passive and not showing as a skill on hero control panel?
 
Level 6
Joined
Sep 24, 2015
Messages
174
I did the trigger with DDS but it's not working...

maybe i did something wrong there?

  • Elements crit dmg trigger
    • Event
      • Game - DamageEvent becomes Equal to* 1.00
    • Conditions
      • IsDamageSpell Equal to* FALSE
      • (DamageEventTarget is A building) Equal to* TRUE
      • (DamageEventSource has an item of type |c008000ffThe Elements|r) Equal to* TRUE
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of DamageEventTarget) Greater or Equal to* 0.30
        • Then - Actions
          • Unité - Add Critical dmg Elements to DamageEventSource
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Life of DamageEventTarget) Less or Equal to* 0.30
            • Then - Actions
              • Unit - Remove Critical dmg Elements from DamageEventSource
            • Else - Actions
 
Level 6
Joined
Sep 24, 2015
Messages
174
but critical strike doesn't work against buildings?
I enabled buildings to target...

because it's still not working even with the percentage life fixing...
 
Level 6
Joined
Sep 24, 2015
Messages
174
hmm i'm doing something wrong?

  • Elements crit dmg trigger
    • Event
      • Game - DamageEvent becomes Equal to* 1.00
    • Conditions
      • IsDamageSpell Equal to FALSE
      • (DamageEventTarget is A building) Equal to* TRUE
      • (DamageEventSource has an item of type |c008000ffThe Elements|r) Equal to* TRUE
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less or Equal to* 60
        • Then - Actions
          • Set DamageEventAmount = (DamageEventAmount x 5.00)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Percentage life of DamageEventTarget) Greater or Equal to* 0.30
        • Then - Actions
          • Unit - Add Critical dmg Elements to DamageEventSource
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Percentage life of DamageEventTarget) Less or Equal to* 0.30
            • Then - Actions
              • Unit - Remove Critical dmg Elements from DamageEventSource
            • Else - Actions
 
Level 6
Joined
Sep 24, 2015
Messages
174
why the event has to be damage event modifier?

because i'll modify the damage on the target?

or is it because i change the value of my critical strike?
 
Level 6
Joined
Sep 24, 2015
Messages
174
hmm it's still not working...

Edit: @publishedShadow man real thanks :D

but now my question is.

How to remove the ability if the tower has less than 30% hps because i did the trigger but it won't remove the ability -.-
 
Status
Not open for further replies.
Top