HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with trigger.

11-30-2003, 09:25 PM#1
DakkonBlackBlad
I am trying to make the spell Din's Fire from Zelda Ocarina of time, I've got a ripple effect that pauses all units within range or hero.
Here is the Trigger:

Events:
Unit-A unit begins casting an ability.

Conditions:
(Ability being cast)Equal to Din's Fire

Actions:
Unit-Pause triggering unit
Environment - Create a 3.00 second Normal ripple deformation at (Position of (Triggering unit)) with starting radius 125.00, ending radius 300.00, and depth 64.00, using 1.00 second ripples spaced 50.00 apart.
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit))) and do (Unit - Pause (Picked unit))
Wait 0.50 seconds
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit))) and do (Unit - Set life of (Picked unit) to -50.00)
Wait 1.00 seconds
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit))) and do (Unit - Set life of (Picked unit) to -50.00)
Wait 1.00 seconds
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit))) and do (Unit - Set life of (Picked unit) to -50.00)
Unit-Unpause Triggering Unit


What have I done Wrong?
11-30-2003, 09:58 PM#2
AllPainful
For one, you didn't unpause the other units...

But what doesn't work about it?
11-30-2003, 10:00 PM#3
DakkonBlackBlad
Well, it instants kill both units =/
11-30-2003, 10:07 PM#4
AllPainful
You mean it kills the caster and anyone around?

That would be because of the short waits, it would definatly appear to be instant, especially when the gamespeed is on fast.

As for it killing the caster, thats because of this:

Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit))) and do (Unit - Set life of (Picked unit) to -50.00)
The caster is withing 300 of its position, so its being picked too, you need to make it not pick the caster too.
11-30-2003, 10:08 PM#5
linkmaster23
lol, i fixed that. Check back at the Thread. What he did wrong was, he made ThunderClap do 200 dmg for 5 seconds. So it instant killed him and all the others. Not to mention the fact that he set it to target him self. lol.

i fixed all that AllPainful. It wasnt in the GUI it was in the object editor.
11-30-2003, 10:09 PM#6
AllPainful
I see. Glad to see its fixed.
11-30-2003, 10:11 PM#7
linkmaster23
indeed. It was all so simple really. After all that help you gave...and it had nuttni to do with it. LOL. pat pat*