• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Condition Stunned

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,614
Hey.

I wonder why doesn't this simple condition work or is there something I don't understand?

  • Untitled Trigger 001
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
      • (Ogre Lord 0001 <gen> is Stunned) Equal to True
    • Actions
      • Game - Display to (All players) the text: aaaaaaaaaaaaaaaa
I throw a storm bolt to this ogre lord and no text is shown. If I put False it shows the text so the condition is at least somehow working.

Map is attached.

Rep for helpers.
 

Attachments

  • Condition - Stunned.w3m
    16.1 KB · Views: 37
Level 37
Joined
Aug 14, 2006
Messages
7,614
Yep, yep I could use that.

If there are however different buffs from different abilities it would need too much time to add every single conditions to multiple triggers. And if I make new abilities more job would be needed. So I try to do things this way.

I would like to know answer is that condition bugging or do I use it wrongly?
 
@Aeroblyctos, you don't have to check it in every trigger, you can just create one that do so, and refer to it everytime you need to check if unit is stunned.

  • check
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (unit has Stun) Equal to True
              • (unit has Sleep) Equal to True
        • Then - Actions
          • Set Stunned = True
        • Else - Actions
          • Set Stunned = False
  • init
    • Events
      • <your event>
    • Conditions
      • <your conditions>
    • Actions
      • Set unit = (Triggering unit)
      • Trigger - Run check <gen> (ignoring conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Stunned Equal to True
        • Then - Actions
          • <other stuff>
        • Else - Actions
          • <other stuff>
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
It does work.

  • Untitled Trigger 124
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Custom script: if GetUnitCurrentOrder(udg_u) == 851973 then
      • Game - Display to Player Group - Player 1 (Red) the text: stunned
      • Custom script: else
      • Game - Display to Player Group - Player 1 (Red) the text: not stunned
      • Custom script: endif
Pastebin link
 
Status
Not open for further replies.
Top