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

Shields down Code?

  • 11
    Posts
    6
    Years
    • Seen May 19, 2019
    I'm trying to implement shields down, the signature ability of minior, but for some reason it simply doesnt trigger.
    Code:

    in BP battler under darmatian's zen mode
    # Shieldsdown
    if self.hasWorkingAbility(:SHIELDSDOWN) && !self.isFainted?
    if @hp<=((@totalhp/2).floor) && self.form!=0
    @battle.pbDisplayEffect(self)
    self.form!=rand(4)
    @battle.pbDisplay(_INTL("{1} activated",PBAbilities.getName(@ability)))
    end
    if @hp>=((@totalhp/2).floor) && self.form!=0
    case self.status
    when PBStatuses::SLEEP
    if self.hasWorkingAbility(:SHIELDSDOWN)
    PBDebug.log("[Ability triggered] #{pbThis}'s #{PBAbilities.getName(@ability)}")
    pbCureStatus(false)
    @battle.pbDisplay(_INTL("{1}'s {2} woke it up!",pbThis,PBAbilities.getName(@ability)))
    end
    when PBStatuses::POISON
    if self.hasWorkingAbility(:SHIELDSDOWN)
    PBDebug.log("[Ability triggered] #{pbThis}'s #{PBAbilities.getName(@ability)}")
    pbCureStatus(false)
    @battle.pbDisplay(_INTL("{1}'s {2} cured its poisoning!",pbThis,PBAbilities.getName(@ability)))
    end
    when PBStatuses::BURN
    if self.hasWorkingAbility(:SHIELDSDOWN)
    PBDebug.log("[Ability triggered] #{pbThis}'s #{PBAbilities.getName(@ability)}")
    pbCureStatus(false)
    @battle.pbDisplay(_INTL("{1}'s {2} healed its burn!",pbThis,PBAbilities.getName(@ability)))
    end
    when PBStatuses::PARALYSIS
    if self.hasWorkingAbility(:SHIELDSDOWN)
    PBDebug.log("[Ability triggered] #{pbThis}'s #{PBAbilities.getName(@ability)}")
    pbCureStatus(false)
    @battle.pbDisplay(_INTL("{1}'s {2} cured its paralysis!",pbThis,PBAbilities.getName(@ability)))
    end
    when PBStatuses::FROZEN
    if self.hasWorkingAbility(:SHIELDSDOWN)
    PBDebug.log("[Ability triggered] #{pbThis}'s #{PBAbilities.getName(@ability)}")
    pbCureStatus(false)
    @battle.pbDisplay(_INTL("{1}'s {2} defrosted it!",pbThis,PBAbilities.getName(@ability)))
    end
    end
    end
    end

    pbs files for forms

    #-----------------------------
    [MINIOR-1]
    FormName=CORE1
    BaseStats=60,100,60,100,60,120
    #-----------------------------
    [MINIOR-2]
    FormName=CORE2
    BaseStats=60,100,60,100,60,120
    #-----------------------------
    [MINIOR-3]
    FormName=CORE3
    BaseStats=60,100,60,100,60,120
    #-----------------------------
    [MINIOR-4]
    FormName=CORE4
    BaseStats=60,100,60,100,60,120

    thanks in advance
     
    Last edited:
    hmmm try this:

    Spoiler:
     
    Last edited:
    hmmm try this:

    Spoiler:
    Spoiler:
     
    Back
    Top