how to change the accuracy of a skill

currently I have a character who uses a gun and has skills that involve shooting said gun
I want the skills to be low accuracy and high damage
currently I set the skills to have a low success rate.
however I also want a way for the character to focus and increase their accuracy, and success rate is unaffected by accuracy
i tried to set the characters default hit rate to be super low and set the success rate to 100%
however the character also has other physical moves that use accuracy and I want them to have the default accuracy
is there a way for individual SKILLS to have a unique accuracy value without using the success rate mechanic?
But isn't in VX Ace too the hit rate a multiplication of the 'skill success' and 'user's hit'? So if you give them a focus state that increases their hit, then the chance grows?
But isn't in VX Ace too the hit rate a multiplication of the 'skill success' and 'user's hit'? So if you give them a focus state that increases their hit, then the chance grows?
chance of the skill landing does grow, but since skill success is a final multiplier, if i set it to 50% for example, even if the users hit rate is 100% the final rate is still 50%
im not sure how much I can raise the hit rate above 100%, if that is even possible.
You could maybe do this through linking a common event to the skill. There you could check if the actor has the focus state, if so, increase their hit rate, execute the shot (this would be a different skill in your database), and decrease the rate again so that other actions have the actor's base rate. If there's no focus, just execute the shot without changes to hit rate. I don't know how skilled you are with Ace - if you're not sure how to do these things, I can try to give you details.
Heyo,

@EntangledPear solution is probably the best in this case. Especially if you have very few skills with such accuracy changes.
You may also want to check more complicated scripts like Vlue's formulas to have weirder hit rate and other stuff for skills/items (but the formulas are not specific to each skill or item).
Otherwise, here is a small script I wrote to replace the hit chance, crit chance and evasion chances of skills/items with formulas that you can define in your notetags:
Ruby:
#==============================================================================
# Dynamic skill rates
#------------------------------------------------------------------------------
# Author: Timtrack
# date: 11/01/2026
#==============================================================================

$imported ||= {}
$imported["TIM-DynamicSkillRates"] = true

#==============================================================================
# Description: allows skills and items to have their rates defined by notetags
# formulas. The rates that can be modified are the hit rate, the dodge rate, 
# the crit rate, the counterattack and magic reflection rates 
# (never used the last two though)
# You can set in your skill/item the notetag:
# <dynamic X: formula>
# - X is the rated stat (either cnt, mrf, hit, eva or cri)
# - formula, much like damage formula is evaluated with arguments:
#      a -> the user of the skill/item
#      b -> the target of it
#      self -> the skill/item
#      v -> the game variables, v[i] being variable i
#      default -> the value of the rate if there was no formula
#
# The result of the formula should be a value between
# 0 (0% chance) and 1 (100% chance)
#
# Examples:
# <dynamic hit: 0.1>
# <dynamic cri: default * 2>
# <dynamic eva: 0>
#==============================================================================
# Installation: probably best to put it as low as possible in your load order
#==============================================================================
# Term of use: free for commercial and non-commercial games, if you give credit
#==============================================================================

module TIM
  module DynamicSkillRates
    REGEXP = /<dynamic\s+(cnt|mrf|hit|eva|cri):\s+(.+)\s*>/i
    #list of modified rates (refered to with item_x methods in Game_Battler:
    LIST = [:cnt, :mrf, :hit, :eva, :cri] 
  end #DynamicSkillRates
end #TIM

#==============================================================================
# DataManager
#==============================================================================
module DataManager
  #--------------------------------------------------------------------------
  # alias method: load_database
  #--------------------------------------------------------------------------
  class <<self; alias load_database_tim_dsr load_database; end
  def self.load_database
    load_database_tim_dsr
    load_notetags_tim_dsr
  end
  
  #--------------------------------------------------------------------------
  # new method: load_notetags_tim_dsr
  #--------------------------------------------------------------------------
  def self.load_notetags_tim_dsr
    [$data_skills, $data_items].each{ |g| g.each {|o| o.load_dsr if o} }
  end
end #DataManager

#==============================================================================
# RPG::UsableItem
#==============================================================================
class RPG::UsableItem < RPG::BaseItem
  #--------------------------------------------------------------------------
  # new method: load_dsr
  #--------------------------------------------------------------------------
  def load_dsr
    @dsr_formulas = {}
    self.note.split(/[\r\n]+/).each do |line|
      if line.match(TIM::DynamicSkillRates::REGEXP)
        @dsr_formulas[$1.to_sym] = $2
      end
    end
  end
  
  #--------------------------------------------------------------------------
  # new method: dsr_formula?
  #--------------------------------------------------------------------------
  def dsr_formula?(rate)
    @dsr_formulas[rate]
  end
  
  #--------------------------------------------------------------------------
  # new method: eval_dsr
  #--------------------------------------------------------------------------
  def eval_dsr(rate, a, b, default, v)
    eval(@dsr_formulas[rate])
  end
end #RPG::UsableItem

#==============================================================================
# Game_Battler
#==============================================================================
class Game_Battler < Game_BattlerBase
  #--------------------------------------------------------------------------
  # alias methods: item_cnt, item_mrf, item_hit, item_eva, item_cri
  #--------------------------------------------------------------------------
  TIM::DynamicSkillRates::LIST.each do |rate|
    #method names: item_x and tim_dsr_item_x with x a rate in LIST
    method_symb = "item_#{rate}".to_sym
    aliased_symb = "tim_dsr_#{method_symb}".to_sym
    
    alias_method(aliased_symb, method_symb)
    define_method(method_symb) do |user, item|
      default = send(aliased_symb, user, item)
      if item.dsr_formula?(rate)
        item.eval_dsr(rate, user, self, default, $game_variables)
      else
        default
      end
    end #item_rate
  end
end #Game_Battler

If you want some sort of grow mechanism of your skill or item stats, you might want to look for extra stats scripts or, if you have a single user of the skill, use game variables.

EDIT: update the script way of reading notetags, I left too many ambiguities.
Some of the questions and answers here give the impression that the different posters don't know how the hit is calculated at all.

Sa as added info the following link goes to the damage flowchart:
RPG Maker VXACE and MV Damage Flow | RPG Maker Forums

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-the-accuracy-of-a-skill.181896/