• 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] I need some help with my disguise

  • 3
    Posts
    6
    Years
    so i need some kind of method to know when someone attacked mimikyu so i can trigger its ability and
    so it doesnt do any damage to the mimikyu.
    this is what i currently have.

    # Disguise
    if isConst?(user.species,PBSpecies,:MIMIKYU) && user.hasWorkingAbility(:DISGUISE)
    if (WHEN OPPONENT ATTACKED) && !user.isFainted? && user.form==0
    (Don't do any damage.)
    @effects[PBEffects::Disguise]=1 (Change form)
    end
    end

    im not good at coding i use pokemon essentials to give me some kind of reason to learn.
    so it can look rubbish.
     
    There's a script for Disguise already if you want to take a look at it.
    I suggest that you use the Google search to look for resources from the forum since the search engine here is not that great. This is if you don't feel like browsing 12 pages of content.

    You can use this template in google search:
    Code:
    KEYWORDS HERE site:https://www.pokecommunity.com
     
    juliorain, I tried that exact same disguise script already but didnt get it to work..... and i just dont know how to fix it.
     
    Okay, i got my own version of disguise working just had to put it under substitute script like in Poq's script
    and i did damage=0 so it didnt do any damage and i baisicly copied the MakeNonBusted script from it.

    in poq's script:
    I didnt get any errors nothing just happened. (i just did something wrong probably)
     
    Last edited:
    Back
    Top