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

[Scripting Question] Had one quick question about forms again.

59
Posts
6
Years
    • Seen May 12, 2022
    I was looking at event encounters - and saw that there was a "make shiny" switch and I was wondering if there's something that lets you do something similar, but lets you toggle forms instead.

    I plan to work with that stuff a lot for the game and it would really help with testing purposes so I can just make test events to see what the form looks like in game.
     
    Last edited by a moderator:

    Ego13

    hollow_ego
    311
    Posts
    6
    Years
  • In PField_EncounterModifiers right under
    Code:
    # Make all wild Pokémon shiny while a certain Switch is ON (see Settings).
    Events.onWildPokemonCreate+=proc {|sender,e|
       pokemon=e[0]
       if $game_switches[SHINY_WILD_POKEMON_SWITCH]
         pokemon.makeShiny
       end
    }

    add

    Code:
    #Make all wild Pokémon have form 1
     Events.onWildPokemonCreate+=proc {|sender,e|
     pokemon=e[0]
     if $game_switches[81] #to be replaced with the game switch number you want
       pokemon.form=1
    
     end
     }
     
    59
    Posts
    6
    Years
    • Seen May 12, 2022
    In PField_EncounterModifiers right under
    Code:
    # Make all wild Pokémon shiny while a certain Switch is ON (see Settings).
    Events.onWildPokemonCreate+=proc {|sender,e|
       pokemon=e[0]
       if $game_switches[SHINY_WILD_POKEMON_SWITCH]
         pokemon.makeShiny
       end
    }

    add

    Code:
    #Make all wild Pokémon have form 1
     Events.onWildPokemonCreate+=proc {|sender,e|
     pokemon=e[0]
     if $game_switches[81] #to be replaced with the game switch number you want
       pokemon.form=1
    
     end
     }

    It worked perfectly. Thanks!
     
    Back
    Top