# This adjusts the formula for HIT. HIT is the physical accuracy rate. # This provided formula uses the average of the user's ATK and AGI as a # bonus contributing factor to increasing the user's HIT. If you do not # wish to use this formula, change it to "base_hit" to have it use # whatever the original HIT rate is. :hit_n_value => "self.def * 100", :hit_formula => "(n / 2) * 0.7250 + 0.050 + base_hit * 2/3", # This adjusts the formula for EVA. EVA is the physical evasion rate. # This provided formula uses the average of the user's AGI and LUK as a # bonus contributing factor to increasing the user's EVA. If you do not # wish to use this formula, change it to "base_eva" to have it use # whatever the original EVA rate is. :eva_n_value => "self.def * 1", :eva_formula => "(n / 1) * 13.25 + 0.000 + base_eva",^ That is the modified Yanfly script, the part I changed. The original scrpt can be found here
https://github.com/Archeia/YEARepo/blob/master/Core/Extra_Param_Formulas.rb
The next one is the crazescriptasylum script, the one I imported and not modified at all, it is supposed to change success rate for a skill so can be higher than 100% so attacks can hit an enemy if it is high enough even if EVA is 100
#==============================================================================# # ▼ Craze's Script Asylum - Accuracy Overflow v1.00# -- Last Updated: 2012.01.10# -- Level: Normal# -- Requires: n/a# #==============================================================================$imported = {} if $imported.nil?$imported["CRZ-AccuracyOverflow"] = true#==============================================================================# ▼ Updates# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# 2012.01.10 - Started and Finished Script.# #==============================================================================# ▼ Introduction# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# In default Ace, skill success rate caps at 100%, meaning that even the most# powerful accuracy buff won't help you hit an evasive ninja. With this script,# hit rates above 100% are useful in hitting enemies with a high evasion or# magical evasion.# #==============================================================================# ▼ Instructions# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# To install this script, open up your script editor and copy/paste this script# to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.# # -----------------------------------------------------------------------------# Skill & Item Notetags - These notetags go in those noteboxes in the database.# -----------------------------------------------------------------------------# <hit: x%> <hit rate: x%> <success: x%> <success rate: x%># Sets the success rate of the skill or item, replacing the input field# in the database. All of the tags do the same thing; use whichever one# makes the most sense to you.## Use <hit: 999%> if you want to make what will likely be a "guaranteed hit"# skill without actually using the "guaranteed hit" hit type in the database.# If you have any enemies that can combat 999% accuracy, I pity your players.# #==============================================================================# ▼ Compatibility# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# This script is made strictly for RPG Maker VX Ace. It is highly unlikely that# it will run with RPG Maker VX without adjusting.## It is encouraged that this script be used with Yanfly Engine Ace - Extra# Param Formulas, so as to make your speed stats affect accuracy and evasion# if you so choose. ## Overwritten methods:# Game_Battler# item_apply## NOTE: item_apply is an important method, and many scripts likely alias it,# if not overwrite it themselves. If you wish to merge this script with that, # it is simple and you are free to do so without my permission. Look at the# script itself to see the lines you need to change.#==============================================================================module CRZ module ACC_OVER #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # - Evasion Message Setting - #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # If true, evasion messages will still appear based on the target's # evasion rate. If not, all misses (due to evasion or not) will be # displayed as a common miss message. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- USE_EV = true end#==============================================================================# ▼ Editting anything past this point may potentially result in causing# computer damage, incontinence, explosion of user's head, coma, death, and/or# halitosis so edit at your own risk.#============================================================================== module REGEXP module USABLEITEM NEW_HIT = /<(?:hit|hit rate|HIT_RATE|success|SUCCESS_RATE):[ ](\d+)([%%])>/i end # USABLEITEM end # REGEXPend # CRZ#==============================================================================# ■ DataManager#==============================================================================module DataManager #-------------------------------------------------------------------------- # alias method: load_database #-------------------------------------------------------------------------- class <<self; alias load_database_acc_over load_database; end def self.load_database load_database_acc_over load_notetags_acc_over end #-------------------------------------------------------------------------- # new method: load_notetags_acc_over #-------------------------------------------------------------------------- def self.load_notetags_acc_over groups = [$data_skills, $data_items] for group in groups for obj in group next if obj.nil? obj.load_notetags_acc_over end end end end # DataManager#==============================================================================# ■ RPG::UsableItem#==============================================================================class RPG::UsableItem < RPG::BaseItem #-------------------------------------------------------------------------- # common cache: load_notetags_acc_over #-------------------------------------------------------------------------- def load_notetags_acc_over #--- self.note.split(/[\r\n]+/).each { |line| case line #--- when CRZ::REGEXP::USABLEITEM::NEW_HIT @success_rate = $1.to_i end } # self.note.split #--- end end # RPG::UsableItem#==============================================================================# ■ Game_Battler#==============================================================================class Game_Battler < Game_BattlerBase def item_apply(user, item) @result.clear @result.used = item_test(user, item) # ALL CHANGES BELOW HERE rate = item_hit(user, item) - item_eva(user, item) @result.missed = (@result.used && rand >= rate) if @result.missed and rate < item_eva(user, item) and CRZ::ACC_OVER::USE_EV @result.missed = false; @result.evaded = true end # ALL CHANGES ABOVE HERE if @result.hit? unless item.damage.none? @result.critical = (rand < item_cri(user, item)) make_damage_value(user, item) execute_damage(user) end item.effects.each {|effect| item_effect_apply(user, item, effect) } item_user_effect(user, item) end end end # Game_Battler#==============================================================================# # ▼ End of File# #==============================================================================Sorry for that long script and thank you for your help