• 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] Alternate Forms Not Working

8
Posts
4
Years
    • Seen Nov 6, 2022
    This has probably been asked a lot, but I went to add Alolan and Galarian forms. I put the code in correctly, the enemy battle sprites appear correctly, however when I capture them and go to use them they come out as the regular. They also show up in the summary form as the Alolan or Galarian variant.

    My Pokemon_Forms script.
    Code:
    MultipleForms.register(:MEOWTH,{
    "getFormOnCreation"=>proc{|pokemon|
       maps=[14]   # Map IDs for second form
       if $game_map && maps.include?($game_map.map_id)
         next 1
       else
         next 0
       end
       },
    "Type 1"=>proc{|pokemon|
          next if pokemon.form==0         #Normal Form
          case pokemon.form
          when 1; next getID(PBTypes,:DARK)   #Alolan
          end

    My pokemonforms pbs
    Code:
    #-------------------------------
    [MEOWTH-1]
    Formname=Alolan
    Type1=DARK
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • When we caught a pokémon, we have an code to turn forceForm to 0, IIRC. Find the code and edit there and I think will solved your problem.
    Try to look for 'megaUnform'.
     
    Back
    Top