• 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] Ability Help Please

  • 38
    Posts
    6
    Years
    • Seen Feb 21, 2022
    I'm trying to make it so if a fire move hits a pokemon with the ability I'm making, it will raise a certain stat, (I'm doing speed for now). But when I check FlashFire for a bit of help on how to script it, there's nothing on how it increases the stats. Does anyone know how I would do this?
     
    Check how my Adrenaline Orbs works and edit for your customization:
    https://www.pokecommunity.com/showthread.php?t=418237

    Also, its better you check how 'MOTORDRIVE' ability works and edit to FIRE.

    Try this, bellow MOTORDRIVE and above DRYSKIN, VOLTABSORB and WATERABSORB, in 'PokeBattle_Move':
    Code:
        if opponent.hasWorkingAbility([COLOR="Red"]:MIMIM[/COLOR]I) && isConst?(type,PBTypes,:FIRE)
          PBDebug.log("[Ability triggered] #{opponent.pbThis}'s [COLOR="red"]Mi mi mi[/COLOR] (made #{@name} ineffective)")
          if opponent.pbCanIncreaseStatStage?(PBStats::SPEED,opponent)
            opponent.pbIncreaseStatWithCause(PBStats::SPEED,1,opponent,PBAbilities.getName(opponent.ability))
          else
            @battle.pbDisplay(_INTL("{1}'s {2} made {3} ineffective!",
               opponent.pbThis,PBAbilities.getName(opponent.ability),self.name))
          end
          return true
        end
     
    Last edited:
    Check how my Adrenaline Orbs works and edit for your customization:
    https://www.pokecommunity.com/showthread.php?t=418237

    Also, its better you check how 'MOTORDRIVE' ability works and edit to FIRE.

    Try this, bellow MOTORDRIVE and above DRYSKIN, VOLTABSORB and WATERABSORB, in 'PokeBattle_Move':
    Code:
        if opponent.hasWorkingAbility([COLOR="Red"]:MIMIM[/COLOR]I) && isConst?(type,PBTypes,:FIRE)
          PBDebug.log("[Ability triggered] #{opponent.pbThis}'s [COLOR="red"]Mi mi mi[/COLOR] (made #{@name} ineffective)")
          if opponent.pbCanIncreaseStatStage?(PBStats::SPEED,opponent)
            opponent.pbIncreaseStatWithCause(PBStats::SPEED,1,opponent,PBAbilities.getName(opponent.ability))
          else
            @battle.pbDisplay(_INTL("{1}'s {2} made {3} ineffective!",
               opponent.pbThis,PBAbilities.getName(opponent.ability),self.name))
          end
          return true
        end

    Thank you so much, while we're at scripting, do you know how I could implement a move like Spectral Thief, Marshadow's signature move? Sorry for asking more questions after you immediately answered one
     
    Search here:https://www.pokecommunity.com/showthread.php?t=383035

    And Mybusiness created this (credit to him if you use):
    Spoiler:


    Well, i checked now and i don't know if that move steals EVASION and ACC. Can you confirm to me?
     
    Last edited:
    Back
    Top