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

Script: Doodle Move Script for Pokemon Essentials V.18

19
Posts
3
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