Quote:
|
Ahg... it's so inefficiently scripted it BURNS!
|
lol I know that I made the trigger so bad. I was tired and I wasn't bothered doing any loops, making it efficent, or doing it in JASS (which I sort of can).
Quote:
|
- (Condition) Why is it "Equal To" instead of "Equal To or Greater Than"
|
Thanks for that, I was looking for a condition that checks if they are an ally of the owner of the triggering player, but I didn't find any. I will do the thing which converts the player to a player number and do it Owner of Triggering player is <5 or whatever.
Quote:
|
All the waits are quite probably screwing stuff up. And you'll want to learn about the 'matching unit is owned by an ally/enemy of (player)' condition type stuff.
|
I first tried it without the waits, but it didn't work. Then I added the waits in hope of making it work. I will post the trigger in trigger tags here now (thanks pyrogasm) and if no one can help me, I will try my hardest to do it in JASS in a more efficent way.
Thanks for the help.
Trigger:
Raging Stomp

Events


Unit - A unit Is attacked

Conditions


(Level of Raging Stomp for (Attacked unit)) Equal to 1

Actions


Set Integer = (Random integer number between 1 and 12)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



Then - Actions




Animation - Play (Attacked unit)'s slam animation




Special Effect - Create a special effect at (Position of (Attacked unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






((Owner of (Attacked unit)) Equal to Player 1 (Red)) or (((Owner of (Attacked unit)) Equal to Player 2 (Blue)) or (((Owner of (Attacked unit)) Equal to Player 3 (Teal)) or (((Owner of (Attacked unit)) Equal to Player 4 (Purple)) or ((Owner of (Attacked unit)) Equal to Player 5 (Yellow)))))





Then - Actions






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 6 (Orange))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 7 (Green))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 8 (Pink))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 9 (Gray))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 10 (Light Blue))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Neutral Hostile)) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Neutral Victim)) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Neutral Extra)) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Neutral Passive)) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds





Else - Actions






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 1 (Red))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 2 (Blue))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 3 (Teal))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 4 (Purple))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Player 5 (Yellow))) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Neutral Hostile)) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Neutral Victim)) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Neutral Extra)) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds






Unit Group - Pick every unit in (Units within 250.00 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Equal to Neutral Passive)) and do (Unit - Cause (Attacked unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal)






Wait 0.01 seconds