Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Can someone confirm I added Tough Claws correctly?

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old December 9th, 2013 (08:13 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 647
Code:
    if isConst?(attacker.ability,PBAbilities,:TOUGHCLAWS) && # Added Ability
       (@flags&0x01)!=0 # Makes direct contact
      basedmg=(basedmg*1.3).floor
    end
I put it in Pokebattle_Move right below
Code:
    if isConst?(attacker.ability,PBAbilities,:RIVALRY) &&
       attacker.gender!=2 && opponent.gender!=2
      if attacker.gender==opponent.gender
        basedmg=(basedmg*1.25).floor
      else
        basedmg=(basedmg*0.75).floor
      end
    end
I'm almost positive I did this correctly. Just want to make sure though.
__________________
Reply With Quote
  #2    
Old January 8th, 2014 (05:21 PM).
LenSho's Avatar
LenSho LenSho is offline
 
Join Date: Sep 2012
Gender: Male
Nature: Modest
Posts: 93
I did some tests, and these were the results:

Opponent's Pokémon:
Mew#1, Has Tough Claws, Shiny, knows Seed Bomb and Waterfall
Mew#2, Has Synchronize, knows Seed Bomb and Waterfall

Damage received by:
Mew#1's
Seed Bomb: 64,75,72,69,70,72,76 (Average: 71.1)
Waterfall: 86,97,84,93,83,91,97 (Average: 90.1)

Mew#2's
Seed Bomb: 66,60,59,58,65,65,57 (Average: 61.4)
Waterfall: 59,59,66,59,63,57,61 (Average: 60.6)

If you multiply 71.1 by 1.3 you get 92.5, that's pretty close to 90.1.

So, I'd say it does work correctly.

(I know a Mew with Tough Claws sounds ridiculous, it was only for testing purposes xD)
__________________
Reply With Quote
  #3    
Old January 8th, 2014 (05:30 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 647
Quote originally posted by LenSho:
I did some tests, and these were the results:

Opponent's Pokémon:
Mew#1, Has Tough Claws, Shiny, knows Seed Bomb and Waterfall
Mew#2, Has Synchronize, knows Seed Bomb and Waterfall

Damage received by:
Mew#1's
Seed Bomb: 64,75,72,69,70,72,76 (Average: 71.1)
Waterfall: 86,97,84,93,83,91,97 (Average: 90.1)

Mew#2's
Seed Bomb: 66,60,59,58,65,65,57 (Average: 61.4)
Waterfall: 59,59,66,59,63,57,61 (Average: 60.6)

If you multiply 71.1 by 1.3 you get 92.5, that's pretty close to 90.1.

So, I'd say it does work correctly.

(I know a Mew with Tough Claws sounds ridiculous, it was only for testing purposes xD)
Lol thanks for double checking for me! I did lot's of tests my self and the damage ratio seemed correct. I just haven't ever added an ability like this so I wanted to be sure
__________________
Reply With Quote
  #4    
Old January 19th, 2014 (05:19 PM).
northrone northrone is offline
 
Join Date: Mar 2012
Gender: Male
Posts: 42
Oh /u/rayd12smitty, you told me you added these moves by yourself
Reply With Quote
  #5    
Old January 19th, 2014 (05:42 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 647
Quote originally posted by northrone:
Oh /u/rayd12smitty, you told me you added these moves by yourself
Adding it myself and having someone double check doesn't mean I didn't add it myself...
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links

You may also like.. (Beta)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 06:04 AM.