Repeating Special Effect

CysticCraze

New Member
Reaction score
12
Hey how do i get a special effect to repeat continually for 10 seconds?

heres my trigger i want the second special effect to loop.

Code:
New Ability
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Gernade 
    Actions
        Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 500.00 at (Position of (Target unit of ability being cast)), dealing 100.00 damage of attack type Spells and damage type Normal
        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Wait 2.00 seconds
        Special Effect - Destroy (Last created special effect)
        Unit - Create 1 Holy Knight for Player 1 (Red) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
        Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl
        Wait 10.00 seconds
        Special Effect - Destroy (Last created special effect)
 

CysticCraze

New Member
Reaction score
12
Yea but i cant find the effect under the object editor, i think its a model, meaning i gotta do it outside the program?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl
?

Just put this inside a loop:
Code:
        Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl
        Wait 1.00 seconds [b]<-- Every 1 second or whatever[/b]
        Special Effect - Destroy (Last created special effect)
?, but make sure it only runs for ten seconds.
 

YourFace

<span style="color:#9C9C9C;"><strong>Runner Up - T
Reaction score
91
why dont you make another trigger with the evnet every 1 second and turn it on at the end of the trigger you posted above(new trigger is initially off)
then do create special effect (whichever effect you want) at the place you want, then destroy it
then wait 10 seconds and turn the trigger off(new one)
also if you want the special effects to follow a unit
then you have to set the variable in the new trigger as well, perhaps a unit group to varify which unit you want
EDIT
also what are you looking for in your second post?
 

OMGedDude

New Member
Reaction score
5
A shorter way might be this: *freehand*
Code:
Event
<Your Event>
Conditions
<Your Conditions>
Actions
<Your Actions>
For Each Integer A from 1 to <how many times you want it to repeat>
Loop
Special Effect - Create <Your effect> at <your location>
Destroy (last created special effect)
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Code:
Event
<Your Event>
Conditions
<Your Conditions>
Actions
<Your Actions>
For Each Integer A from 1 to <how many times you want it to repeat>
Loop
Special Effect - Create <Your effect> at <your location>
Destroy (last created special effect)
That'd be good.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        [attacked/damaged/etc] unit-type = [footman/peasant/etc] = True
    Then - Actions
        For Each Integer A from 1 to 10
            Loop
                Special Effect - Create <Your effect> at <your location>
                Wait 1.00 seconds
                Destroy (last created special effect)
    Else - Actions
Kay, finally done, that's it there.
 

Fung

New Member
Reaction score
0
Is there anyway to make the loop infinite without crashing the user?

I have a spell that frees a units soul (kills them) and plays an effect. I'd like for a beam of some sort to loop where they died. Possible?
 

istar

New Member
Reaction score
31
erm... if it would crash the user, that would be a serious issue
use custom effect
instead of making a 2 sec effect loop forever
use a custom effect that is permanent until removed
a little bit increment of map size > crash
 

WolfieeifloW

WEHZ Helper
Reaction score
372
It's not impossible and wouldn't crash the user.
Just make a trigger where when the unit dies, it runs another periodic event.
Then just make the periodic event every...1.00 seconds and create and destroy the SFX.
 

Fung

New Member
Reaction score
0
Not entirely sure how to pull that off. Periodic Events can't be fired off as an action, correct? So I would need to make another trigger with this event and have it fired off after the first completes?

Code:
Untitled Trigger 004
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Set UnitPoint = (Dying unit)
        Wait 2.00 seconds
        Special Effect - Create a special effect attached to the overhead of UnitPoint using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Wait 3.00 seconds
        Special Effect - Destroy (Last created special effect)
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Hmm...
In GUI I don't really know since the variable gets overwritten.
I meant more of getting that trigger to fire another trigger that has the event of every 1.00 seconds.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top