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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top