じ☆ve冰风 发表于 2026-7-24 07:53:20

Super Skill Nerf VX

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 Notes:
                Ruby:       
<cast_only_once>
<cast_only_twice>


Or Cool Them Down!

Mandatory Note:
                Ruby:       
<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:
                Ruby:       
$game_party.clear_used_skills!


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


VX Script - Simple Version

                Ruby:       
# * Super Skill Nerf VX * #
#   Scripter : Kyonides
#   v1.2.2 - 2025-09-25

# 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>
# Cast Only Twice: <cast_only_twice>
# 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
    ONLY_TWICE_NOTETAG = /<cast_only_twice>/i
    SKILL_CD_NOTETAG   = /<cooldown (\d+)>/i
    def cast_once?
      @note != nil
    end

    def cast_twice?
      @note != nil
    end

    def has_cooldown?
      @note != nil
    end

    def cooldown_turns
      @note
      $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 = {}
    @used_skills.default = 0
    @skill_cd.default = 0
end

def skill_used?(skill_id)
    @used_skills > 0
end

def skill_cd?(skill_id)
    @skill_cd > 0
end

def skill_can_use?(skill)
    return false unless skill
    skill_id = skill.id
    return false if skill.has_cooldown? and skill_cd?(skill_id)
    return false if @used_skills != 0 and skill.cast_once?
    return false if @used_skills == 2 and skill.cast_twice?
    kyon_ssn_gm_act_sk_cn_use?(skill)
end

def refresh_skill_data(skill)
    @used_skills += 1
    @skill_cd = skill.cooldown
end

def decrease_skill_cooldowns!
    @skill_cd.keys.each {|k| @skill_cd -= 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


You'd need to download a demo to get the Colored version.

DOWNLOAD DEMO NOW!​

Terms & Conditions

Free as in beer for non commercial games.
Include my nickname in your game credits.
Thank Opozorilo for making the script request. (Optional aka a Joke)
That's it!
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7


本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/super-skill-nerf-vx.180116/
页: [1]
查看完整版本: Super Skill Nerf VX