• 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.
  • 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • 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.

Script: Doodle Move Script for Pokemon Essentials V.18

  • 19
    Posts
    5
    Years
    • Seen Oct 27, 2023
    This is a Script of the Move Doodle.
    Since I couldn´t find a script of it myself for Version 18, I´ve just made a script for it myself.


    #===============================================================================
    # Changes the abilities on your side to the ability of the target. (Doodle)
    #===============================================================================
    class PokeBattle_Move_181 < PokeBattle_Move
    def ignoresSubstitute?(user); return true; end

    def pbMoveFailed?(user,targets)
    if user.unstoppableAbility?
    @battle.pbDisplay(_INTL("But it failed!"))
    return true
    end
    return false
    end

    def pbFailsAgainstTarget?(user,target)
    if target.ability==0 || user.ability==target.ability
    @battle.pbDisplay(_INTL("But it failed!"))
    return true
    end
    if target.ungainableAbility? ||
    isConst?(target.ability, PBAbilities, :POWEROFALCHEMY) ||
    isConst?(target.ability, PBAbilities, :RECEIVER) ||
    isConst?(target.ability, PBAbilities, :TRACE) ||
    isConst?(target.ability, PBAbilities, :WONDERGUARD)
    @battle.pbDisplay(_INTL("But it failed!"))
    return true
    end
    return false
    end

    def pbEffectAgainstTarget(user,target)
    @battle.pbShowAbilitySplash(user,true,false)
    user.eachAlly do |b|
    oldAbil = user.ability
    oldAbil2 = b.ability
    user.ability = target.ability
    b.ability = target.ability
    @battle.pbReplaceAbilitySplash(user)
    @battle.pbHideAbilitySplash(user)
    @battle.pbReplaceAbilitySplash(b)
    @battle.pbHideAbilitySplash(b)
    @battle.pbDisplay(_INTL("{1} redrew {2}'s {3} ability onto itself and {4}!",
    user.pbThis,target.pbThis(true),target.abilityName,b.pbThis))
    user.pbOnAbilityChanged(oldAbil)
    b.pbOnAbilityChanged(oldAbil2)
    user.pbEffectsOnSwitchIn
    b.pbEffectsOnSwitchIn
    end
    end
    end




    I hope this script will help someone.
     
    Back
    Top