Jump to content
  • 0

Giving skills a shared cooldown


PedroProplayer

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   4
  • Joined:  10/10/13
  • Last Seen:  

Is it possible to give multiple skills a shared cooldown? By that I mean creating a group of skills which, when one is used, all of the skills in this group go on cooldown.

If I were to use after cast delay it would make ALL skill unusable but that's not my goal. I want only a specific group of skills to work like that.

Where in the src would I need to edit to control this behavior?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  812
  • Reputation:   234
  • Joined:  01/30/13
  • Last Seen:  

The way I'd go about it is use the existing Cooldown functionality. The Cooldown is stored per skill, but you could just make Skill B and Skill C also store their cooldown as "Skill A".

And then just block Skill B and Skill C when there's a Cooldown for "Skill A".

All the code you need would be in skill.cpp.

You could for example take a look at WL_RELEASE because that actually fetches the Cooldown from another skill (the preserved skill) and applies it.

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   4
  • Joined:  10/10/13
  • Last Seen:  

10 hours ago, Playtester said:

The way I'd go about it is use the existing Cooldown functionality. The Cooldown is stored per skill, but you could just make Skill B and Skill C also store their cooldown as "Skill A".

And then just block Skill B and Skill C when there's a Cooldown for "Skill A".

All the code you need would be in skill.cpp.

You could for example take a look at WL_RELEASE because that actually fetches the Cooldown from another skill (the preserved skill) and applies it.

This is exactly the answer and reference I needed it. Worked good.

Thank you very much.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.03
  • Content Count:  79
  • Reputation:   0
  • Joined:  06/17/20
  • Last Seen:  

On 4/8/2022 at 12:13 PM, PedroProplayer said:

This is exactly the answer and reference I needed it. Worked good.

Thank you very much.

good day @Playtester @PedroProplayer can you guys share how to make this work?  I wanted to stop NDL and chainskill with this method. thank you
for example, BOLTS, all bolts should share the same cooldown. I am using Cooldown function on skill db, each skill will have different cd.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...