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

[Question] [Help] Vivillon forms depending on map (script)

  • 44
    Posts
    5
    Years
    Hello, I tried to make some kind of code for getting the vivillon paterns depending on the map that spewpa evolves, but it doesn't works correctly. I don't know how to properly code and I edited this code for deerling forms:

    Spoiler:

    If I don't state any map, vivillon gets the normal form but, if I state someone, vivillon gets always the highland pattern.

    EXAMPLE: I add map 82 in the moonsoon_maps=[]. When I evolve there, I get highplains pattern...

    Here is the code. If someone can help me, that would be awesome.

    Spoiler:
     
    Last edited:
    getFormOnCreationdoesn't affect what form it evolves into. It affects the form the game sets Vivillon to when it creates a new pokemon from scratch.
    You'll want to change the form of the Spewpa beforehand with a "getForm" using this same code. It'll silently change the form of the spewpa to the desired Vivillon form when you stand in the right map. (Rockruff uses a similar implementation for the 3 forms it evolves to.)

    As for why it's selecting the incorrect form, have you confirmed that it's giving you the 10 form Vivillon? It's possible you have a mismatch of either ids or graphics, so form 17 is actually high plains or Monsoon has the High Plains sprite. Try checking the debug menu in the party.
     
    Oh, I see. I'll try that and see what happens.

    I checked if the graphics correspond to their respective forms and yes, they are placed correctly. So maybe it's something in the code.

    I'll be writing again when I have some results.

    Thanks!
    ---------------------------------

    EDIT

    Yeah! It worked perfectly!

    A lot of thanks for your advice.

    If someone wants to use it, here is the new code.

    Spoiler:
     
    Last edited:
    Back
    Top