• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] How do I make Flame Strike not damage a specific destructible?

Status
Not open for further replies.
  1. You could change the Lever's type to something else than Debris. Just make sure that units can attack the new type too.
  2. Alternatively you could make the lever a unit. That way you have more control over what can damage it via damage detection systems or plain magic immunity
Sadly I don't think any of the damage detection systems support destructables.
 
If you want to render this destractable not targettable, there is a filed in the object editor for destructible called "Targetted As".
If you untick everything in there, it should become safe from any kind of attack.
 
  • X
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Flame Strike
    • Actions
      • -------- This is just an example --------
      • Set VariableSet TempAoE = 500.00
      • Set VariableSet TempLoc = (Target point of ability being cast)
      • Destructible - Pick every destructible within TempAoE of TempLoc and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Picked destructible)) Equal to Lever
            • Then - Actions
              • Set VariableSet TempDest = (Picked destructible)
              • Destructible - Make TempDest Invulnerable
            • Else - Actions
      • Wait 3.00 seconds
      • Destructible - Pick every destructible within TempAoE of TempLoc and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Picked destructible)) Equal to Lever
            • Then - Actions
              • Set VariableSet TempDest = (Picked destructible)
              • Destructible - Make TempDest Vulnerable
            • Else - Actions
      • Custom script: call RemoveLocation (udg_TempLoc)
Something like this should work.
 
I tried changing the Lever's "Targeted as" value to something other than Debris but it seems to break it each time. I modified Flame Strike to instead not target Debris. It works for now, thanks everyone!

DoomBlade, that could work but it would break the aggro of the enemy attacking the Lever. Thanks anyway :)
 
Status
Not open for further replies.
Back
Top