• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Armor reduced when the damage deals..

Status
Not open for further replies.
Level 3
Joined
Jan 1, 2013
Messages
43
Melting Strike 1
  • Events
    • Unit - A unit Is attacked
  • Conditions
    • ((Triggering unit) is A structure) Equal to False
  • Actions
    • Set MS_Timer = 5.00
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ((Triggering unit) is in MS_Detect) Not equal to True
      • Then - Actions
        • Unit Group - Add (Triggering unit) to MS_Detect
        • Trigger - Add to Melting Strike 2 <gen> the event (Unit - (Picked unit) Takes damage)
      • Else - Actions
Melting Strike 2
  • Events
  • Conditions
    • (Level of Melting Strike [E] for (Damage source)) Greater than 0
  • Actions
    • Set MS_Count = (MS_Count + 1)
    • Unit - Add Melting Srike Corruption to (Picked unit)
    • Unit - Set level of Melting Srike Corruption for (Picked unit) to MS_Count
    • Trigger - Turn on Melting Strike Timer <gen>
Melting Strike 3
  • Events
    • Time - Every 0.50 seconds of game time
  • Conditions
  • Actions
    • Set MS_Timer = (MS_Timer - 0.50)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • MS_Timer Less than or equal to 0.00
      • Then - Actions
        • Unit - Remove Melting Srike Corruption from (Picked unit)
        • Trigger - Turn off (This trigger)
      • Else - Actions
It's doesn't work...:vw_sad:
 

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
Why dont u use the Orb of Lighting spell instead? Change the target spell from Purge to Faeri Fire (the Night Elf's spell that minus armor of the enemy). It's easier to make than using trigger.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
orbs have bug in them, if you order unit to attack ground and not direct unit the passive will not proc

you could just use Bribes damage detection system and detect when damage is dealt with the trigger, run a simple check for the ability and do the other stuff
 
Level 3
Joined
Jan 1, 2013
Messages
43
Why dont u use the Orb of Lighting spell instead? Change the target spell from Purge to Faeri Fire (the Night Elf's spell that minus armor of the enemy). It's easier to make than using trigger.

Look at the trigger, i want each damage deals increase the armor corruption...
 
Status
Not open for further replies.
Top