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

"Is stunned" conditional broken?

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
  • 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??
 
Level 25
Joined
Aug 13, 2011
Messages
739
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
 
Level 7
Joined
May 11, 2010
Messages
278
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!"
 
Status
Not open for further replies.
Top