- 2
- Posts
- 9
- Years
- Washington, DC
- Seen Apr 21, 2019
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
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: