Snippet TimedEffect, I know there are many XD

Komaqtion

You can change this now in User CP.
Reaction score
469
Hi!

I just thought I'd submit a small and simple snippet which lets you configure how long Special Effects will last...

I know there are many of these already out there, which are probably better and has more features than mine, but I thought I'd submit mine anyways...

There might still be someone out there who likes simplicity ;)

This system requires: JassHelper, which can be found in JASS Newgen Pack, and Key Timers 2...

And here's the code :D

JASS:
library TE requires KT

private struct SFX
    effect sfx

    method onDestroy takes nothing returns nothing
        call DestroyEffect(.sfx)
    endmethod
endstruct

private function Destroy takes nothing returns boolean
    call SFX(KT_GetData()).destroy()
    return true
endfunction

function TimedEffect takes effect e, real duration returns nothing
    local SFX d = SFX.create()
    set d.sfx = e
    call KT_Add(function Destroy,d,duration)
endfunction

endlibrary


You simply use the function called "TimedEffect", which takes an effect, and also the duration of which the effect will last :D
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
To increase the utility of this snippet, why not add features that other systems don't have, like effect's size.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well... xe does that, doesn't it ? :eek:

But I could add some more features, I know XD
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
They do same thing both, why I need to choose the big 1? I like tiny stuffs that do same works with heavy script.
 

Romek

Super Moderator
Reaction score
963
> To increase the utility of this snippet, why not add...
To increase the post of this comment, you could say something more constructive.

> I like tiny stuffs that do same works with heavy script.
I'm fine thanks, you?

Anyway, you're well aware that there are about 6000 of these out there, ranging from very simple things such as this, to advanced systems such as xe.

There's no need for another one. Sorry; Graveyarded.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Ok then :(

Note: Yeah, I knew there ware many, though haven't really seen any of this small size...
But anyways :(
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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