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

Adding a text box when sending out a "corrupted" Pokemon (EDIT: solved)

  • 2
    Posts
    9
    Years
    This should be a fairly simple task, but I guess I'm entirely incompetent.

    I've added a "Corrupted" Pokemon state by following a guide I found posted by Rot8r_ConeX back in 2015 (I'm working on v14) and now I'd like to have a text box appear whenever I send out a corrupted Pokemon that says "{1} has been corrupted!"

    I have no clue how to go about doing this. I know I've got to edit something in the script section "PokeBattle_Battler" but I'm not sure how or where to add it. Any help would be greatly appreciated.

    EDIT: Solved.

    I added under #About this battler in "PokeBattle_Battler" a check to see if the Pokemon had the Corrupt type:

    def pbCorruption?
    return self.pbHasType?(:CORRUPT)
    end

    Then, under #Ability effects, I added a check as a part of def pbAbilitiesOnSwitchIn(onactive) after the Cloud Nine ability:

    if self.pbCorruption? && inactive
    @battle.pbDisplay(_INTL("{1} is corrupted!",pbThis))
    end
     
    Last edited:
    Back
    Top