不...早上是用手機上網..不太能表達清楚0.0"
a364774426前輩說的是對的...
但是這SRPG2的腳本~他有另外定義
class Game_Enemy < Game_Battler #敵、中立方角色數據能力取得
#--------------------------------------------------------------------------
# ● 命中率の取得
#--------------------------------------------------------------------------
def hit
return apply_tile_effect(enemy.hit, TSRPG::HIT)
end
#--------------------------------------------------------------------------
# ● 回避率の取得
#--------------------------------------------------------------------------
def eva
return apply_tile_effect(enemy.eva, TSRPG::EVA)
end
#--------------------------------------------------------------------------
# ● クリティカル率の取得
#--------------------------------------------------------------------------
def cri
n = enemy.has_critical ? 10 : 0
return apply_tile_effect(n, TSRPG::CRI)
end
-------還有-----
class Game_Actor < Game_Battler #我方角色數據能力取得
#--------------------------------------------------------------------------
# ● 基本敏捷性(移動力)の取得
#--------------------------------------------------------------------------
def base_agi
n = actor.parameters[5, @level]
for item in equips.compact do n += item.agi end
if TSRPG::JOB_AGI[@class_id] != nil # 職業別移動力補正あり
n += TSRPG::JOB_AGI[@class_id]
end
n -= 1 if over_weight? # 重量過多ならマイナス1#←已取消重量腳本
return n
end
#--------------------------------------------------------------------------
# ● 命中率の取得
#--------------------------------------------------------------------------
def hit
if two_swords_style
n1 = weapons[0] == nil ? 95 : weapons[0].hit
n2 = weapons[1] == nil ? 95 : weapons[1].hit
n = [n1, n2].min
else
n = weapons[0] == nil ? 95 : weapons[0].hit
end
n = apply_tile_effect(n, TSRPG::HIT) # 地形効果による補正を適用
return n
end
#--------------------------------------------------------------------------
# ● 回避率の取得
#--------------------------------------------------------------------------
def eva
n = over_weight? ? 0 : 5 # 重量過多なら基本値を0に#←已取消重量腳本
for item in armors.compact do n += item.eva end
n = apply_tile_effect(n, TSRPG::EVA) # 地形効果による補正を適用
return n
end
#--------------------------------------------------------------------------
# ● クリティカル率の取得
#--------------------------------------------------------------------------
def cri
n = 4
n += 4 if actor.critical_bonus
for weapon in weapons.compact
n += 4 if weapon.critical_bonus
end
n = apply_tile_effect(n, TSRPG::CRI)