I will not be posting any more scripts here unless I decide to return.
Here's Modern Algebra's patch for the RTAB. I'll check it later to make sure it's bug free and whatnot.
class Game_Battler
#--------------------------------------------------------------------------
# * Applying Normal Attack Effects
# attacker : battler
#--------------------------------------------------------------------------
def attack_effect(attacker)
# ?????????????
self.critical[attacker] = false
state_p[attacker] = []
state_m[attacker] = []
# ??????
hit_result = (rand(100) < attacker.hit)
# ?????
if hit_result == true
# ?????????
atk = [attacker.atk - self.pdef / 2, 0].max
self.damage[attacker] = atk * (20 + attacker.str) / 20
# ????
self.damage[attacker] *= elements_correct(attacker.element_set)
self.damage[attacker] /= 100
# ????????????
if self.damage[attacker] > 0
# ????????
random = (rand(100) - (Integer(attacker.luck/10)))
if random < 4 * attacker.dex / self.agi
self.damage[attacker] *= 2
self.critical[attacker] = true
end
# ????
if self.guarding?
self.damage[attacker] /= 2
end
end
# ??
if self.damage[attacker].abs > 0
amp = [self.damage[attacker].abs * 15 / 100, 1].max
self.damage[attacker] += rand(amp+1) + rand(amp+1) - amp
end
# ??????
eva = 8 * self.agi / attacker.dex + self.eva
hit = self.damage[attacker] < 0 ? 100 : 100 - eva
hit = self.cant_evade? ? 100 : hit
hit_result = (rand(100) < hit)
end
# ?????
if hit_result == true
# ????????
remove_states_shock
# HP ?????????
# ??????
@state_changed = false
states_plus(attacker, attacker.plus_state_set)
states_minus(attacker, attacker.minus_state_set)
# ?????
else
# ????? "Miss" ???
self.damage[attacker] = "Miss"
# ?????????????
self.critical[attacker] = false
end
# ??????
return true
end
end
Now, I'm out of here.