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!

Just add the Skill ID to the ONLY_ONCE_SKILL_IDS array and that's it!

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

VX Script

Code:
# * Super Skill Nerf VX * #
#   Scripter : Kyonides
#   v1.0.0 - 2025-09-06

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

# Mandatory Skill Note Tag: <cast_only_once>

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

module RPG
  class Skill
    ONLY_ONCE_NOTETAG = /<cast_only_once>/i
    def cast_only_once?
      @note[ONLY_ONCE_NOTETAG] != nil
    end
  end
end

class Game_Battler
  alias :kyon_ssn_gm_btlr_sk_fx :skill_effect
  def skill_effect(user, skill)
    user.used_skills[skill.id] = true 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 = {}
  end

  def skill_can_use?(skill)
    return false if skill.cast_only_once? and skill_used?(skill.id)
    kyon_ssn_gm_act_sk_cn_use?(skill)
  end

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

  def clear_used_skills!
    @used_skills.clear
  end
  attr_reader :used_skills
end

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

class Scene_Battle
  alias :kyon_ssn_scn_btl_term :terminate
  def terminate
    $game_party.clear_used_skills!
    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


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



Users browsing this thread: 1 Guest(s)