• 🏆 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!

[Trigger] Cannot have two Stings on the same target?

Status
Not open for further replies.
Level 6
Joined
Sep 17, 2004
Messages
277
Okay, here's the deal. I have a hero who has two abilities: Serpent Sting and Wyvern Sting. Both are based/have a part based on Shadow Strike. They use different buffs. I'm trying to make it so that if the target is already under the sleep/dot of Wyvern Sting, that you cannot cast Serpent Sting on the unit. And vice-versa.

Here's what I got for attempting to put Serpent Sting on Wyvern Sting.

  • SerpentStingOnWyvernStingTarget
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Serpent Sting
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (((Targeted unit) has buff Wyvern Sting Debuff (Pause)) Equal to True) or (((Targeted unit) has buff Wyvern Sting (damage)) Equal to True)
        • Then - Actions
          • Sound - Play Error <gen>
          • Game - Display to (All players controlled by a User player) the text: |cffffcc00You canno...
          • Game - Force (Triggering player) to press Escape/Cancel
          • Sound - Destroy Error <gen>
        • Else - Actions
          • Do nothing
Okay, this trigger does not work at all. I get noting. No error message, sound, or otherwise.

What am I doing wrong?
 
Level 6
Joined
Sep 17, 2004
Messages
277
It works great! Thank you! :D The only remaining problem is that the mana is still consumed when the ability is used. How do I fix that? :S

Edit: Nevermind, I got it fixed.

Cool! Thanks, man! :)
 
Status
Not open for further replies.
Top