• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Buff

Status
Not open for further replies.
Contrary to what Arhowk said, I was under the impression that buffs are applied after "Starts the effect of an ability".

  • Untitled Trigger 016
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Frost Armor (Autocast)
    • Actions
      • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Cast
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of ability being cast) has buff Frost Armor) Equal to True
        • Then - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Has buff
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: No buff
This would tell me that the target unit doesn't have the buff.
 
Contrary to what Arhowk said, I was under the impression that buffs are applied after "Starts the effect of an ability".

  • Untitled Trigger 016
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Frost Armor (Autocast)
    • Actions
      • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Cast
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of ability being cast) has buff Frost Armor) Equal to True
        • Then - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Has buff
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: No buff
he said on damage

E/ well im 100% sure its before damage is dealt but im not sure about on cast
 
  • Untitled Trigger 029
    • Events
      • Unit - Acolyte 0021 <gen> Takes damage
      • Unit - Acolyte 0022 <gen> Takes damage
      • Unit - Acolyte 0025 <gen> Takes damage
      • Unit - Acolyte 0026 <gen> Takes damage
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Slowed) Equal to True
        • Then - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Damaged, Has buff
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Damaged, No buff
      • Wait 0.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Slowed) Equal to True
        • Then - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Damaged, Has buff
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Damaged, No buff
This tells me no buff, has buff.
 
  • Untitled Trigger 029
    • Events
      • Unit - Acolyte 0021 <gen> Takes damage
      • Unit - Acolyte 0022 <gen> Takes damage
      • Unit - Acolyte 0025 <gen> Takes damage
      • Unit - Acolyte 0026 <gen> Takes damage
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Slowed) Equal to True
        • Then - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Damaged, Has buff
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Damaged, No buff
      • Wait 0.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Slowed) Equal to True
        • Then - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Damaged, Has buff
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) for 4.00 seconds the text: Damaged, No buff
This tells me no buff, has buff.

works fine for me with storm bolt, frost arrow, and chain lightning (common bases in my map)...
 
Status
Not open for further replies.
Back
Top