• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
6
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

    • eeeer.png
      eeeer.png
      28.4 KB · Views: 190
    • Screenshot_14.png
      Screenshot_14.png
      19 KB · Views: 186
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    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
     

    hirokimura

    Miltank's Fanboy Number One
    150
    Posts
    6
    Years
  • 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