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

Chance on hit aura help

Status
Not open for further replies.
You could create a dummy unit who casts war stomp with triggers, something like this:
  • War Stomp Passive
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to "Your Spell"
    • Actions
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
 
  • War Stomp Passive
  • Events
  • Unit - A unit is attacked
  • Conditions
  • (Attacked unit) has a buff (based on aura)
  • Random number between 0 and 100 less than or equal to 25
  • Actions
  • Set TempLoc = position of (attacked unit)
  • Unit - Create 1 Dummy Unit for (Owner of (Attacked unit)) at (TempLoc) facing Default building facing degrees
  • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
  • Custom Script: call RemoveLocation(udg_Tempoc)
  • Today 12:35 PM
 
Level 4
Joined
Mar 23, 2008
Messages
90
i think this will work i do not have the editor up so it may be wrong
  • skill
  • events
    • Unit - A unit is attacked
    • Conditions
      • attacked unit has buff (your aura)
      • Actions
        • if all conditions are true then actions, else actions
          • Conditions
            • random intreger number between 1 and 4 equal to 1
          • Then actions
            • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
            • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
            • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
        • else actions
          • do nothing
 
Last edited:
Ah, forgot that it was supposed to be a passive, lol :p
Here's everyone's ideas in one trigger, should work:
  • Passive War Stomp
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) has buff "Passive War Stomp Aura") Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 4) Equal to 1
        • Then - Actions
          • Set Temp_Loc = Position of (Attacked Unit)
          • Unit - Create 1 "Dummy Unit" for (Owner of (Attacked unit)) at (Temp_Loc) facing Default building facing degrees
          • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
          • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
          • Custom script: call RemoveLocation(udg_Temp_Loc)
        • Else - Actions
 
Level 12
Joined
Aug 22, 2008
Messages
911
I s*** in leak things, so sorry but you have to convert my trigger to be leakless, and anyways it'll look different in the real trigger.
  • 25% War Stomp Aura
    • Events
      • Unit - A unit is attacked
    • Conditions
      • ((Triggering Unit) has buff YourBuff) equal to True
    • Actions
      • Set Chances = Random number between 1 and 4
      • If (Chances equal to 4) then do (Then Actions) else do (Do Nothing)
        • Then - Actions
          • Unit - Create 1 Dummy at (Position of (Triggering Unit)) facing whatever
          • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
          • Unit - Add a Force of Nature expiration timer for (Last created unit) lasting 1.00 seconds
Well yeah, it's Mehpisto's thing.
 
Level 7
Joined
Jul 20, 2008
Messages
377
  • 25% War Stomp Aura
    • Events
      • Unit - A unit is attacked
    • Conditions
      • ((Triggering Unit) has buff YourBuff) equal to True
    • Actions
      • Set tempPoint = (Position of (Triggering Unit))
      • Set Chances = Random number between 1 and 4
      • If (Chances equal to 4) then do (Then Actions) else do (Do Nothing)
        • Then - Actions
          • Unit - Create 1 Dummy at tempPoint facing whatever
          • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
          • Unit - Add a Force of Nature expiration timer for (Last created unit) lasting 1.00 seconds
      • Custom script: call RemoveLocation(udg_tempPoint)
 
Status
Not open for further replies.
Top