HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Trigger Not Working

06-25-2007, 08:42 AM#1
deadlysheep_1
Ok, so I made this spell for my friend's map, it is called Raging Stomp. Basically, it is this spell which has a 20% chance when you are attacked to slam the ground dealing 150 damage to all enemies in the area. This trigger works in doing the special effect, but it does no damage to anyone in the area. Please help me. In lack of not knowing how to put all the triggers in a trigger tag, I will attach the map.

Thanks in advance.
Attached Files
File type: w3xHeros for Goldrush.w3x (27.2 KB)
06-25-2007, 09:22 AM#2
Tide-Arc Ephemera
Uh... there is "Or Multiple Conditions" which lets you list things down... The problem with your trigger is that...

I honestly do not have a clue. There are some things I'd like to point out...

- (Condition) Why is it "Equal To" instead of "Equal To or Greater Than"
- (Action, Condition) Why not use "Or multiple conditions"

Ahg... it's so inefficiently scripted it BURNS!
06-25-2007, 11:03 AM#3
Pyrogasm
Highlight Your trigger > Edit > Copy as Text > Click the Gear-like button in the reply box > Paste

Please use the tags so that we may help you.
06-25-2007, 12:40 PM#4
blu_da_noob
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.
06-25-2007, 10:26 PM#5
deadlysheep_1
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
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
(Level of Raging Stomp for (Attacked unit)) Equal to 1
Collapse Actions
Set Integer = (Random integer number between 1 and 12)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Integer Greater than 9
Collapse 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
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse 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)))))
Collapse 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
Collapse 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
Collapse Else - Actions
Do nothing