Help - Search - Members - Calendar
Full Version: Change Critical Damage for Certain Weapons
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS
AresWarrior
OKAY I'm only posting this because I get auto-suspended each time I post this script at Gamefaqs. This is just to help someone out. Proof:

http://i251.photobucket.com/albums/gg313/z...d_No_Reason.png

SO...here's what I've been trying to post.


Okay I've attempted it and this is what I got. I'm not a good scripter so it might not work right. so...

Go to the Script Editor and go to Game_Battler 3. Scroll down until you find:

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

Change that whole thing to:

CODE
# 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


Just change WEAPON_ID to the weapon you want that will do the different critical damage. Change CRIT to how much you want it to multiply by. The default critical damage is 2. If you want to see a big difference, try changing CRIT to 10.
AresWarrior
sorry, the script didn't work right before. i changed "$game_party.actors[self.index]" just to "attacker" and now it works.
Locke
Well its nice to see a scripter cause i haven't seen a single new scripts.
Good Job biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.