• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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?

  • 158
    Posts
    6
    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?
     
    Check how Castform pokemon works.
     
    Back
    Top