设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 67|回复: 0

[转载发布] Super Skill Nerf VX

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    5778

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    25563
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    32235

    灌水之王

    发表于 前天 07:53 | 显示全部楼层 |阅读模式
    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:       
    1. <cast_only_once>
    2. <cast_only_twice>
    复制代码


    Or Cool Them Down!

    Mandatory Note:
                    Ruby:       
    1. <cooldown 1>
    2. <cooldown 4>
    复制代码

    Any positive number will be fine.

    And just in case you want to clear this skill use limit once per call:
                    Ruby:       
    1. $game_party.clear_used_skills!
    复制代码


    Or if you prefer to clear the cooldowns altogether:
                    Ruby:       
    1. $game_party.clear_skill_cooldowns!
    复制代码


    VX Script - Simple Version

                    Ruby:       
    1. # * Super Skill Nerf VX * #
    2. #   Scripter : Kyonides
    3. #   v1.2.2 - 2025-09-25
    4. # Nerf! Nerf! Nerf your favorite super duper skills!
    5. # Even up to the point where your heroes can only use them once per battle!
    6. # Or Cool Them Down!
    7. # - Note Tags - #
    8. # Cast Only Once:  <cast_only_once>
    9. # Cast Only Twice: <cast_only_twice>
    10. # Cooldown: <cooldown 1> or <cooldown 4> (Any positive number is fine)
    11. # * Optional Script Calls * #
    12. # - Just in case you want to clear this skill use limit once per call:
    13. # $game_party.clear_used_skills!
    14. # - Just in case you want to clear the skill cooldowns:
    15. # $game_party.clear_skill_cooldowns!
    16. module RPG
    17.   class Skill
    18.     ONLY_ONCE_NOTETAG  = /<cast_only_once>/i
    19.     ONLY_TWICE_NOTETAG = /<cast_only_twice>/i
    20.     SKILL_CD_NOTETAG   = /<cooldown (\d+)>/i
    21.     def cast_once?
    22.       @note[ONLY_ONCE_NOTETAG] != nil
    23.     end
    24.     def cast_twice?
    25.       @note[ONLY_TWICE_NOTETAG] != nil
    26.     end
    27.     def has_cooldown?
    28.       @note[SKILL_CD_NOTETAG] != nil
    29.     end
    30.     def cooldown_turns
    31.       @note[SKILL_CD_NOTETAG]
    32.       $1.to_i
    33.     end
    34.     def cooldown
    35.       @cooldown ||= cooldown_turns
    36.     end
    37.   end
    38. end
    39. class Game_Battler
    40.   alias :kyon_ssn_gm_btlr_sk_fx :skill_effect
    41.   def skill_effect(user, skill)
    42.     user.refresh_skill_data(skill) if user.actor?
    43.     kyon_ssn_gm_btlr_sk_fx(user, skill)
    44.   end
    45. end
    46. class Game_Actor
    47.   alias :kyon_ssn_gm_act_stp :setup
    48.   alias :kyon_ssn_gm_act_sk_cn_use? :skill_can_use?
    49.   def setup(actor_id)
    50.     kyon_ssn_gm_act_stp(actor_id)
    51.     @used_skills = {}
    52.     @skill_cd = {}
    53.     @used_skills.default = 0
    54.     @skill_cd.default = 0
    55.   end
    56.   def skill_used?(skill_id)
    57.     @used_skills[skill_id] > 0
    58.   end
    59.   def skill_cd?(skill_id)
    60.     @skill_cd[skill_id] > 0
    61.   end
    62.   def skill_can_use?(skill)
    63.     return false unless skill
    64.     skill_id = skill.id
    65.     return false if skill.has_cooldown? and skill_cd?(skill_id)
    66.     return false if @used_skills[skill_id] != 0 and skill.cast_once?
    67.     return false if @used_skills[skill_id] == 2 and skill.cast_twice?
    68.     kyon_ssn_gm_act_sk_cn_use?(skill)
    69.   end
    70.   def refresh_skill_data(skill)
    71.     @used_skills[skill.id] += 1
    72.     @skill_cd[skill.id] = skill.cooldown
    73.   end
    74.   def decrease_skill_cooldowns!
    75.     @skill_cd.keys.each {|k| @skill_cd[k] -= 1 }
    76.     @skill_cd.delete_if {|k, v| v < 1 }
    77.   end
    78.   def clear_used_skills!
    79.     @used_skills.clear
    80.   end
    81.   def clear_skill_cooldowns!
    82.     @skill_cd.clear
    83.   end
    84.   attr_reader :used_skills, :skill_cd
    85. end
    86. class Game_Party
    87.   def decrease_skill_cooldowns!
    88.     members.each {|actor| actor.decrease_skill_cooldowns! }
    89.   end
    90.    
    91.   def clear_used_skills!
    92.     members.each {|actor| actor.clear_used_skills! }
    93.   end
    94.   def clear_skill_cooldowns!
    95.     members.each {|actor| actor.clear_skill_cooldowns! }
    96.   end
    97. end
    98. class Scene_Battle
    99.   alias :kyon_ssn_scn_btl_st_mn :start_main
    100.   alias :kyon_ssn_scn_btl_term :terminate
    101.   def start_main
    102.     $game_party.decrease_skill_cooldowns!
    103.     kyon_ssn_scn_btl_st_mn
    104.   end
    105.   def terminate
    106.     $game_party.clear_used_skills!
    107.     $game_party.clear_skill_cooldowns!
    108.     kyon_ssn_scn_btl_term
    109.   end
    110. end
    复制代码


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



    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!



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

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-26 04:48 , Processed in 0.125307 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表