1. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  2. The Melee Mapping Contest #4: 2v2 - Results are out! Step by to congratulate the winners!
    Dismiss Notice
  3. We're hosting the 15th Mini-Mapping Contest with YouTuber Abelhawk! The contestants are to create a custom map that uses the hidden content within Warcraft 3 or is inspired by any of the many secrets within the game.
    Dismiss Notice
  4. The 20th iteration of the Terraining Contest is upon us! Join and create exquisite Water Structures for it.
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice

"Is stunned" conditional broken?

Discussion in 'World Editor Help Zone' started by Shoto, Jan 13, 2015.

  1. Shoto

    Shoto

    Joined:
    May 11, 2010
    Messages:
    276
    Resources:
    1
    Spells:
    1
    Resources:
    1
    • Untitled Trigger 001
      • Events
        • Player - Player 1 (Red) skips a cinematic sequence
      • Conditions
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Mountain King 0001 <gen> is Stunned) Equal to True
          • Then - Actions
            • Game - Display to (All players) the text: He is stunned.
          • Else - Actions
            • Game - Display to (All players) the text: He is not stunned.


    I cast Storm Bolt on Mountain King 0001. The ability lands and the Mountain King displays the stun buff includning the effect over his head.
    I then run this. It always returns "He is not stunned."

    How does this conditional work??
     
  2. Tickles

    Tickles

    Joined:
    Aug 13, 2011
    Messages:
    663
    Resources:
    4
    Maps:
    4
    Resources:
    4
    That refers to a classification you can add to the unit with the action:
    • Unit - Add classification of Stunned to Unit


    For buffs/debuffs, you can just check for the buff itself:
    • (Unit has buff Stunned (Pause)) Equal to True
     
  3. Shoto

    Shoto

    Joined:
    May 11, 2010
    Messages:
    276
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Well, that makes everything about 3451% more convinient. Thanks!

    Edit: If it actually worked.
    • Untitled Trigger 001
      • Events
        • Player - Player 1 (Red) skips a cinematic sequence
      • Conditions
      • Actions
        • Unit - Add classification of Stunned to Mountain King 0000 <gen>
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Mountain King 0000 <gen> is Stunned) Equal to True
          • Then - Actions
            • Game - Display to (All players) the text: He is stunned!
          • Else - Actions
            • Game - Display to (All players) the text: He is not stunned!


    This returns "He is not stunned!"
     
  4. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,193
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    Some of the classifications can not be added with triggers.
     
  5. Shoto

    Shoto

    Joined:
    May 11, 2010
    Messages:
    276
    Resources:
    1
    Spells:
    1
    Resources:
    1
    You don't happen to know which ones can be?
     
  6. GreeN!X

    GreeN!X

    Joined:
    Oct 20, 2012
    Messages:
    2,346
    Resources:
    2
    Maps:
    1
    Template:
    1
    Resources:
    2
    Imo, it's a lot better to use the Buff check. Trigger is a lot short and is probably more reliable.