• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our 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.

[Scripting Question] change form by specific move

  • 7
    Posts
    5
    Years
    • Seen Nov 17, 2019
    I am trying to create a ability that causes pokémon to change form according to the type of move it uses, how can I do that?
     
    From vanilla version v17.2, inside _Form script, when KELDEO has move SECRETSWORD, will change its form. Copy that. Also the code will be something like this:
    Code:
    next 1 if pokemon.hasMove?(:MIMIMI) && isConst?(pokemon.ability,PBAbilties,:MAMMAMIA)
    next
     
    From vanilla version v17.2, inside _Form script, when KELDEO has move SECRETSWORD, will change its form. Copy that. Also the code will be something like this:
    Code:
    next 1 if pokemon.hasMove?(:MIMIMI) && isConst?(pokemon.ability,PBAbilties,:MAMMAMIA)
    next

    I thought of doing something like Castform, but using moves instead of weather, would that do the same?
     
    Maybe AEGISLASH would be better for what you want.

    I tried this code I found in PEGen 6 and modified it, but I think I did something wrong
    I'm trying to make Red's Vee, which has the ability to evolve during battles just by using moves of different types.

    Edit: Now it's working, I just clean some codes and included "transformed=true"

    PokeBattle_Battler:
    Spoiler:
    Pokemon_Forms:
    Spoiler:
     
    Last edited:
    Back
    Top