• 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.

Buff

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
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.
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
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
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • 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.
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
  • 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.
Top