Ok, I came across this script that I like, what it does is set an attack amount for the weapon. Meaning whatever is in the "attack" spot for weapons or monsters will always be the same. For example, I put in 100 as the monsters attack, all he'll hit is 100.
My request: Is it possible to instead of having a set attack, to have it use a range, for instance a range of 50-100, instead of just hitting 100. Or is their a script that could allow me to set a range, either is fine (edit or different script) The script is posted below:
Thanks for any help given! :thumb:
My request: Is it possible to instead of having a set attack, to have it use a range, for instance a range of 50-100, instead of just hitting 100. Or is their a script that could allow me to set a range, either is fine (edit or different script) The script is posted below:
Code:
class Game_Battler
#--------------------------------------------------------------------------
# * Applying Normal Attack Effects
# attacker : battler
#--------------------------------------------------------------------------
def attack_effect(attacker)
# Clear critical flag
self.critical = false
# First hit detection
hit_result = (rand(100) < attacker.hit)
# If hit occurs
if hit_result == true
# Calculate basic damage
self.damage = attacker.atk
# Second hit detection
eva = 8 * self.agi / attacker.dex + self.eva
hit = self.damage < 0 ? 100 : 100 - eva
hit = self.cant_evade? ? 100 : hit
hit_result = (rand(100) < hit)
end
# If hit occurs
if hit_result == true
# State Removed by Shock
remove_states_shock
# Substract damage from HP
self.hp -= self.damage
# State change
@state_changed = false
states_plus(attacker.plus_state_set)
states_minus(attacker.minus_state_set)
# When missing
else
# Set damage to "Miss"
self.damage = "Miss"
# Clear critical flag
self.critical = false
end
# End Method
return true
end
end
Thanks for any help given! :thumb: