Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skills cooldown
#1
Hey all!

I want to discus and find ways to enable having cooldowns on skills. Example - DvA can only be used in 10 seconds after previous use, while DJA - 20 seconds.

My theory: every skill would have additional frames at the beggining ("starter") and at the end ("finisher"). The "finisher" frame would spawn a t0 "timer" which follows the char via kind8. The "starter" then checks if "timer" is alive, and if it is, then char goes to standing frames.
I don't like this as much as I hate itr/k8. But I'm too stupid to think of any other method. Any ideas?
Reply
Thanks given by:
#2
Cooldowns from my mod looks like this:


Hero:
    DC-Code:
<frame> 331 tornado
   pic: 56  state: 15  wait: 2  next: 332  dvx: 0  dvy: 0  centerx: 32  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 mp: 135
   bdy:
      kind: 0  x: 25  y: 33  w: 29  h: 45
   bdy_end:
   bdy:
      kind: 0  x: 18  y: -664566  w: 120 h: 40
   bdy_end:
<frame_end>
<frame> 332 tornado
   pic: 57  state: 15  wait: 2  next: 333  dvx: 0  dvy: 0  centerx: 32  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 25  y: 33  w: 29  h: 45
   bdy_end:
<frame_end>
 
<frame> 333 tornado
   pic: 58  state: 15  wait: 2  next: 334  dvx: 0  dvy: 0  centerx: 32  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 25  y: 33  w: 29  h: 45
   bdy_end:
<frame_end>
 
<frame> 334 tornado
   pic: 59  state: 15  wait: 2  next: 335  dvx: 0  dvy: 0  centerx: 32  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 25  y: 33  w: 29  h: 45
   bdy_end:
<frame_end>
 
<frame> 335 tornado
   pic: 60  state: 15  wait: 2  next: 336  dvx: 0  dvy: 0  centerx: 32  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
opoint:
      kind: 1  x: 65  y: 80  action: 150  dvx: 0  dvy: 0  oid: 211  facing: 30
   opoint_end:
   bdy:
      kind: 0  x: 25  y: 33  w: 29  h: 45
   bdy_end:
<frame_end>
<frame> 336 tornado
   pic: 61  state: 15  wait: 2  next: 337 dvx: 0  dvy: 0  centerx: 32  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 25  y: 33  w: 29  h: 45
   bdy_end:
opoint:
      kind: 1  x: 65  y: 80  action: 174  dvx: 0  dvy: 0  oid: 211  facing: 0
   opoint_end:
<frame_end>
 
<frame> 337 tornado
   pic: 62  state: 15  wait: 2  next: 338  dvx: 0  dvy: 0  centerx: 32  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 25  y: 33  w: 29  h: 45
   bdy_end:
<frame_end>
 
<frame> 338 tornado
   pic: 63  state: 15  wait: 2  next: 999  dvx: 0  dvy: 0  centerx: 32  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 25  y: 33  w: 29  h: 45
   bdy_end:
<frame_end>


Spell (ID:211):
    DC-Code:
<frame> 174 tornado_cd
   pic: 999  state: 18  wait: 65  next: 1000 dvx: 0  dvy: 0  centerx: 72  centery: 74  hit_a: 0  hit_d: 0  hit_j: 0
      itr:
      kind: 0  x: -1000  y: -664566 w: 9999 zwidth: 999 h: 100 dvx: 1 dvy: 1 fall: 10 arest: 7 bdefend: 70 injury: 25  effect: 0
itr_end:  
<frame_end>


It works perfectly, instand of fall 10 its possible to put -1 or smthing like this : P

Reply
Thanks given by:
#3
Infern, so every time he tries to launch a skill he gets hit? That sounds neat! Although not perfect, because if you have same two heros, the cooldowns get messed up.
I want to avoid that - that's why I didn't want to use ik8 in the first place.
Reply
Thanks given by:
#4
What about some kind of anty cd?
I mean state 3000 cd which after being hit going to frame with other itr.
Really dont know how to explain this, and I am not even sure If I am thinking correctly about this xD

@edit
Ok, I tried to draw it: http://imageshack.us/photo/my-images/560/cdcd.png/ (dont laugh)

Reply
Thanks given by:
#5
If you want to combine this with a little graphical effect, you could take a shot at the pet-technique, it features an object swirling around the summoner, no matter what. You can then combine it with Infern's method (I don't know, it's so simple that it's awesome again :p).

If you don't want to use itr/k8 or k0, you can also resort to the grab-itr (1 or 3, I always forget that). Basically, when the char executes the move while still being inside the time-limit, you get grabbed and brought to a frame which will display an animation à la "I can't do this, I'm tired", etc.

On a second thought, the pet-thing grabbing you might not be the best idea, considering that it constantly moves around...
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#6
Thanks everyone! I'm going to try that method with grab, and lastly if nothing works - itrk8.
Btw, maybe anything with weapons? But afaik you can't hold more than one weapon...
Reply
Thanks given by:
#7
(06-09-2012, 08:11 PM)Simoneon Wrote:  Infern, so every time he tries to launch a skill he gets hit? That sounds neat! Although not perfect, because if you have same two heros, the cooldowns get messed up.
I want to avoid that - that's why I didn't want to use ik8 in the first place.

Even with ik8 it's not sure it will stick with char A if char B enters the itr radius of the T0 object.

Simoneon edited this post 06-10-2012 07:15 AM because:
Ofc, that's why I hate it :)
My Creations: (Click to View)

Return (String) System.getNewsOfTheDay();
Barely active, expect slow responses. If at all.


Greetz,
Alblaka
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)