• 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.

[Scripting Question] Is This Correct?

163
Posts
5
Years
  • It's for abilities called Warm-Blooded and Cold-Blooded. They change a certain Pokemon's form depending on whether they are in Sunny weather or Hail weather, in a particular environment, or whether they are holding a Fire Stone or an Ice Stone.
    # Warm-Blooded
    if isConst?(self.species,PBSpecies,:THERMEWT) ||
    isConst?(self.species,PBSpecies,:THERMAGUANA)
    if self.hasWorkingAbility(:WARMBLOODED) &&
    (@battle.pbWeather==PBWeather::SUNNYDAY ||
    @battle.pbWeather==PBWeather::HARSHSUN ||
    @environment==PBEnvironment::Sand ||
    @environment==PBEnvironment::Volcano ||
    isConst?(self.item,PBItems,:FIRESTONE))
    if self.form!=1
    self.form=1; transformed=true
    end
    else
    if self.form!=0
    self.form=0; transformed=true
    end
    end
    end
    # Cold-Blooded
    if isConst?(self.species,PBSpecies,:THERMEWT) ||
    isConst?(self.species,PBSpecies,:THERMAGUANA)
    if self.hasWorkingAbility(:COLDBLOODED) &&
    (@battle.pbWeather==PBWeather::HAIL ||
    @environment==PBEnvironment::Snow ||
    isConst?(self.item,PBItems,:ICESTONE))
    if self.form!=1
    self.form=1; transformed=true
    end
    else
    if self.form!=0
    self.form=0; transformed=true
    end
    end
    end
    Can someone check this to see if it's correct or not?
     

    Diverscope

    Pardon me
    152
    Posts
    11
    Years
  • Uhm, why don't you check it yourself? Also put your code in a code-tag to avoid the forum from breaking the code.
     
    Last edited:
    Back
    Top