Super Skill Nerf VX
#1
Super Skill Nerf VX

by Kyonides

Introduction

Nerf! Nerf! Nerf your favorite super duper skills!
Yes, even up to the point where your heroes can only use them once per battle!

Mandatory Note:
Code:
<cast_only_once>

Or Cool Them Down!

Mandatory Note:
Code:
<cooldown 1>
<cooldown 4>
Any positive number will be fine.

And just in case you want to clear this skill use limit once per call:
Code:
$game_party.clear_used_skills!

Or if you prefer to clear the cooldowns altogether:
Code:
$game_party.clear_skill_cooldowns!

VX Script

Code:
# * Super Skill Nerf VX * #
#   Scripter : Kyonides
#   v1.1.0 - 2025-09-16

# Nerf! Nerf! Nerf your favorite super duper skills!
# Even up to the point where your heroes can only use them once per battle!
# Or Cool Them Down!

# - Note Tags - #
# Cast Only Once: <cast_only_once>
# Cooldown: <cooldown 1> or <cooldown 4> (Any positive number is fine)

# * Optional Script Calls * #

# - Just in case you want to clear this skill use limit once per call:
# $game_party.clear_used_skills!

# - Just in case you want to clear the skill cooldowns:
# $game_party.clear_skill_cooldowns!

module RPG
  class Skill
    ONLY_ONCE_NOTETAG = /<cast_only_once>/i
    SKILL_CD_NOTETAG  = /<cooldown (\d+)>/i
    def cast_only_once?
      @note[ONLY_ONCE_NOTETAG] != nil
    end

    def has_cooldown?
      @note[SKILL_CD_NOTETAG] != nil
    end

    def cooldown_turns
      @note[SKILL_CD_NOTETAG]
      $1.to_i
    end

    def cooldown
      @cooldown ||= cooldown_turns
    end
  end
end

class Game_Battler
  alias :kyon_ssn_gm_btlr_sk_fx :skill_effect
  def skill_effect(user, skill)
    user.refresh_skill_data(skill) if user.actor?
    kyon_ssn_gm_btlr_sk_fx(user, skill)
  end
end

class Game_Actor
  alias :kyon_ssn_gm_act_stp :setup
  alias :kyon_ssn_gm_act_sk_cn_use? :skill_can_use?
  def setup(actor_id)
    kyon_ssn_gm_act_stp(actor_id)
    @used_skills = {}
    @skill_cd = {}
    @skill_cd.default = 0
  end

  def skill_used?(skill_id)
    @used_skills[skill_id] != nil
  end

  def skill_can_use?(skill)
    return false if skill.has_cooldown? and @skill_cd[skill.id] > 0
    return false if skill.cast_only_once? and skill_used?(skill.id)
    kyon_ssn_gm_act_sk_cn_use?(skill)
  end

  def refresh_skill_data(skill)
    @used_skills[skill.id] = true
    @skill_cd[skill.id] = skill.cooldown
  end

  def decrease_skill_cooldowns!
    @skill_cd.keys.each {|k| @skill_cd[k] -= 1 }
    @skill_cd.delete_if {|k, v| v < 1 }
  end

  def clear_used_skills!
    @used_skills.clear
  end

  def clear_skill_cooldowns!
    @skill_cd.clear
  end
  attr_reader :used_skills, :skill_cd
end

class Game_Party
  def decrease_skill_cooldowns!
    members.each {|actor| actor.decrease_skill_cooldowns! }
  end
   
  def clear_used_skills!
    members.each {|actor| actor.clear_used_skills! }
  end

  def clear_skill_cooldowns!
    members.each {|actor| actor.clear_skill_cooldowns! }
  end
end

class Scene_Battle
  alias :kyon_ssn_scn_btl_st_mn :start_main
  alias :kyon_ssn_scn_btl_term :terminate
  def start_main
    $game_party.decrease_skill_cooldowns!
    kyon_ssn_scn_btl_st_mn
  end

  def terminate
    $game_party.clear_used_skills!
    $game_party.clear_skill_cooldowns!
    kyon_ssn_scn_btl_term
  end
end


Terms & Conditions

Free as in Beer beer for non commercial games. Gamer
Include my nickname in your game credits.
Thank Opozorilo for making the script request. (Optional aka a Joke)
That's it! Tongue sticking out
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply
#2
Script Update!

Starting from version 1.1.0 you can now use or abuse of its brand new feature: Slayne Ghim skill cooldowns! Shocked

NEW NOTE TAG:
Code:
<cooldown 1>
<cooldown 4>

If you want to clear the cooldowns ingame, use this:
Code:
$game_party.clear_skill_cooldowns!
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
   Ekuipment's Skill Damage ACE kyonides 1 1,724 03-15-2025, 02:32 AM
Last Post: kyonides
   Skill Roulette VX + ACE kyonides 0 1,038 10-04-2024, 06:43 AM
Last Post: kyonides
   Skill Item Kost ACE kyonides 0 2,308 01-03-2024, 12:07 AM
Last Post: kyonides
   Skill Success Fix Taylor 0 6,529 03-23-2015, 12:15 PM
Last Post: Taylor
   Vampyr's SBABS DVV Addon #1: HUD Item Counter & Skill Delay Bar DerVVulfman 1 8,272 06-19-2012, 03:15 AM
Last Post: DerVVulfman
   Custom Skill Algorithms Lowell 0 6,092 12-07-2008, 05:45 PM
Last Post: Lowell
   Skill Delay VX DerVVulfman 0 6,256 03-06-2008, 04:29 AM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)