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

Shields down Code?

11
Posts
5
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:

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • hmmm try this:

    Spoiler:
     
    Last edited:
    11
    Posts
    5
    Years
    • Seen May 19, 2019
    hmmm try this:

    Spoiler:
    Spoiler:
     
    Back
    Top