• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Supereffective Hail and Sandstorm

hirokimura

Miltank's Fanboy Number One
  • 150
    Posts
    7
    Years
    By a copy and paste you'll be able to check for the pokemon type before applying hail and sandstorm damages.

    Hail damages are Ice type.
    Sandstorm damages are Ground type.

    So, let's go !
    In pokebattle_battle, locate this part of the code:

    Code:
            pbCommonAnimation("Rain",nil,nil)
    #        pbDisplay(_INTL("Rain continues to fall."))
          end

    Just after this, you have the case
    Code:
    when PBWeather::SANDSTORM
    Select the whole code, so, until just before the When PBWeather::HAIL case.
    Spoiler:


    And paste this instead:

    Spoiler:

    Next, you'll select the entire hail case, following the sandstorm case.
    Spoiler:


    Paste this:
    Spoiler:

    If you wanna edit sandstorm damages to rock, juste change the GROUND to ROCK.
    And you're done !
     

    Attachments

    • [PokeCommunity.com] Supereffective Hail and Sandstorm
      eeeer.png
      28.4 KB · Views: 190
    • [PokeCommunity.com] Supereffective Hail and Sandstorm
      Screenshot_14.png
      19 KB · Views: 186
    Can we make Rain Super Effective on fire types?

    So rain does damage to fire types and is SE? or does damage in general?

    if so just take how sandstorm damage works and how it doesnt hit steel etc. but change it from !i.pbHasType?(:ROCK) to i.pbHasType?(:FIRE) aswell as keeping the checks if it doesnt have items/abilities
    and that should work

    and for SE most likely just rework the code here like it was for hail/sandstorm
     
    To be fair, I'm actually working on how rain and sun would affect grass, fire, and water types respectively, electric as well, but damages seems unefficient alone for me.
    Sorry for late reply; btw
     
    Back
    Top