Change Critical Damage for Certain Weapons

Started by AresWarrior, June 28, 2010, 07:33:34 pm

Previous topic - Next topic

AresWarrior

June 28, 2010, 07:33:34 pm Last Edit: June 28, 2010, 07:35:20 pm by AresWarrior
Hi I just wanted to share this little script that I figured out myself. It changes the critical damage depending on what weapon you have equipped.

Go to Game_Battler 3 and find this:

# Critical correction
if rand(100) < 4 * attacker.dex / self.agi
self.damage *= 2
self.critical = true
end


Change that to this:

 # Critical correction
if rand(100) < 4 * attacker.dex / self.agi
if attacker.weapon_id == WEAPON_ID
self.damage *= CRIT
else
self.damage *= 2
end
self.critical = true
end


WEAPON_ID is the ID of the weapon, and CRIT is how much you want to multiply by. If you want to see a big difference, try changing CRIT to 5 or 10. This can work for a weapon called Critical Blade or somethin.

By the way, I'm not a master scripter so this may look easy to some of you guys who are master scripters.  :P