• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • 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] Region-Based Forms

  • 19
    Posts
    7
    Years
    • Seen Aug 14, 2021
    Hello! Small problem I've been having.

    I've created a Pokemon that changes forms and types depending on the region it's in. Because the game involves teleporting across vast distances, I use game switches to keep track of what region the player is in, and use those same switches to tell the Pokemon what form it should be in, using getForm.

    For the most part, this works great! There's just one problem: When entering a new region, for the first battle this Pokemon enters, and the first battle only, it retains the form it had in the last region it was in. I tried to fix this by adding a getFormOnEnteringBattle section, which caused it to display the correct sprite, but moves still affected it as though it were the same type as the previous form.

    This is minor but annoying. Is there a specific script I should add to Pokemon_Forms to get this to update correctly? Or is there a script call I can use within an event on entering a new region to update its form? I'm working in 18.1, if that matters.
     
    It sounds like the Pokemon doesn't check your game switch until it is called into battle. Have you tried selecting the maps the Pokemon changes form on like Giratina?
     
    Back
    Top