• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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 -.-
 
Level 11
Joined
Jun 26, 2014
Messages
513
It's easy. You don't need dds.
Time every 1 second.
If then else :
IF:
- unit has item and unit has life percent equal or greater than 30
Then:
- add demolish ability to unit
Else:
-remove demolish ability from unit


Something similar to that
 
Status
Not open for further replies.
Top