Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Change Critical Damage for Certain Weapons
AresWarrior
post Jun 15 2010, 04:55 PM
Post #1


Level 5
Group Icon

Group: Member
Posts: 69
Type: None
RM Skill: Beginner




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.

This post has been edited by AresWarrior: Jun 28 2010, 03:20 PM
Go to the top of the page
 
+Quote Post
   
AresWarrior
post Jun 28 2010, 09:59 AM
Post #2


Level 5
Group Icon

Group: Member
Posts: 69
Type: None
RM Skill: Beginner




sorry, the script didn't work right before. i changed "$game_party.actors[self.index]" just to "attacker" and now it works.

This post has been edited by AresWarrior: Jun 28 2010, 03:21 PM
Go to the top of the page
 
+Quote Post
   
Locke
post Jun 30 2010, 11:10 PM
Post #3


Level 10
Group Icon

Group: Revolutionary
Posts: 151
Type: Mapper
RM Skill: Intermediate




Well its nice to see a scripter cause i haven't seen a single new scripts.
Good Job biggrin.gif


__________________________
We are one (Really i,m not joking)



I've seen many things when mankind rule the land


Which Final Fantasy Character Are You?
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 10:33 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker