Force a skill on cooldown with Yanfly Skill Restrictions

I want to have a boss with a skill that forces the party's skills to be on cooldown. I tried doing it with <change cooldown +x> but that only extends it.

Is there a command or add-on that accomplishes this?
So if the actor has a skill on cooldown then it would not apply?

This was written in notepad++, so not tested.
Ruby:
# -----------------------------------------------------------------------------
# Skill Notetags - These notetags go in the skills notebox in the database.
# -----------------------------------------------------------------------------
# <force_cooldown: x>
# Causes the party to have a cooldown of x for every skill

module YEA
  module REGEXP
        module SKILL
            FORCE_COOLDOWN = /<(?:FORCE_COOLDOWN|force_cooldown):[ ](\d+)>/i
        end
    end
end

class RPG::Skill < RPG::UsableItem
 
  #--------------------------------------------------------------------------
  # public instance variables
  #--------------------------------------------------------------------------
  attr_accessor :force_cooldown
  def load_notetags_srs
    @force_cooldown = 0
    self.note.split(/[\r\n]+/).each { |line|
      case line
      #---
      when YEA::REGEXP::SKILL::FORCE_COOLDOWN
        @force_cooldown = $1.to_i
            end
        end
    end
end

class Game_BattlerBase
 
  #--------------------------------------------------------------------------
  # alias method: pay_skill_cost
  #--------------------------------------------------------------------------
  alias r2_game_battler_pay_skill_cost_918327h pay_skill_cost
  def pay_skill_cost(skill)
    r2_game_battler_pay_skill_cost_918327h(skill)
    $game_party.force_cooldown(skill) if skill.force_cooldown != 0
  end
end

class Game_Party
  #--------------------------------------------------------------------------
  # new method: set_cooldown for party
  #--------------------------------------------------------------------------
  def force_cooldown(amount = 0)
    return unless $game_party.in_battle
        for member in battle_members
            for skill in member.skills
                cldwn = cooldown?(skill)
                @cooldown[skill] = amount if cldwn <= 0
            end
        end
    skill = skill.id if skill.is_a?(RPG::Skill)
  end
end
I want to have a boss with a skill that forces the party's skills to be on cooldown. I tried doing it with <change cooldown +x> but that only extends it.

Is there a command or add-on that accomplishes this?

What you are looking for, my friend, is this comment: <skill cooldown [x]: +[x]>

This makes it so if anybody gets hit with an attack tagged with this, that skill will be set on cooldown even if they both: never use it, and even if that attack doesn't have natural cooldown to begin with.

It only affects the person who is hit, so if you want a party wide forced-cooldown then the attack needs to hit everyone.
What you are looking for, my friend, is this comment: <skill cooldown [x]: +[x]>

This makes it so if anybody gets hit with an attack tagged with this, that skill will be set on cooldown even if they both: never use it, and even if that attack doesn't have natural cooldown to begin with.

It only affects the person who is hit, so if you want a party wide forced-cooldown then the attack needs to hit everyone.

And what do I set X to?
And what do I set X to?

The first X is the skill ID and the second is the amount of turns it's affected.

Example: Aura Saber is skill ID 20 in my games, and I want to afflict a temporary cooldown of 3 turns when the user gets hit with a debilitating move.

In the notes section of said deblitating move, you put in this: <skill cooldown 20: +3>
The first X is the skill ID and the second is the amount of turns it's affected.

Example: Aura Saber is skill ID 20 in my games, and I want to afflict a temporary cooldown of 3 turns when the user gets hit with a debilitating move.

In the notes section of said deblitating move, you put in this: <skill cooldown 20: +3>

So in that case, would I have to do so for all my skills?
So in that case, would I have to do so for all my skills?

No...?

Wasn't the point of the thread that you wanted a boss to use an AOE attack that forces cooldown on everyone's skills? This will do exactly that, provided it actually hits its intended targets.

EX. there's an attack called Moonflare in my games that has <skill cooldown 20: +3> in its notes section. When it hits its target, if the targets know Aura Saber (skill 20), they can't use it for a cooldown of three turns.

It is not the same as <cooldown: 3>, which is the natural cooldown of an attack.
Okay, so the + notetag is for the "forced" cooldown? I think I get it now

Original thread: https://forums.rpgmakerweb.com/threads/force-a-skill-on-cooldown-with-yanfly-skill-restrictions.152528/