1. Melee Mapping contest #3 - Poll is up! Vote for the best 4v4 melee maps!
    Dismiss Notice
  2. The 30th edition of the Modeling Contest is finally up! The Portable Buildings need your attention, so come along and have a blast!
    Dismiss Notice
  3. We have a new contest going on right now! Join the 11th Music Contest! You are to make a Cinematic modern sound-track for this contest, so come and compete with other people for fun.
    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.