Jump to content
  • 0

Question

Posted

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?

3 answers to this question

Recommended Posts

  • 1
Posted

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
  • 0
Posted
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.

  • 0
Posted
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.

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...