• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

Form not appearing in the wild

  • 76
    Posts
    9
    Years
    • Seen Dec 9, 2022
    Hello, so I included two different forms of Diglett and wanted to make them appear on a certain map. So I was checking the forum and I did the following
    Code:
    MultipleForms.register(:DIGLETT,{
    "getFormOnCreation"=>proc{|pokemon|
       maps1=[75]   # Map IDs for form 1
       maps2=[76]   # Map IDs for form 2
       if $game_map && maps1.include?($game_map.map_id)
         next 1
       elsif $game_map && maps2.include?($game_map.map_id)
         next 2
       else
         next 0
       end
    },
    "type1"=>proc{|pokemon|
       next if pokemon.form==0
       case pokemon.form
       when 1; next getID(PBTypes,:GROUND)
       when 2; next getID(PBTypes,:ICE)
       end
    },
    "type2"=>proc{|pokemon|
       next if pokemon.form==0
       case pokemon.form
       when 1; next getID(PBTypes,:STEEL)
       when 2; next getID(PBTypes,:NORMAL)
       end
    },
    "getMoveList"=>proc{|pokemon|
       next if pokemon.form==0
       movelist=[]
       case pokemon.form
       when 1;movelist=[[1,:SANDTOMB],[1,:ROTOTILLER],[1,:NIGHTSLASH],
                  [1,:TRIATTACK],[1,:SANDATTACK],[1,:METALCLAW],
                  [1,:GROWL],[4,:GROWL],[7,:ASTONISH],
                  [10,:MUDSLAP],[14,:MAGNITUDE],[18,:BULLDOZE],
                  [22,:SUCKERPUNCH],[25,:MUDBOMB],[30,:EARTHPOWER],[35,:DIG],
                  [41,:IRONHEAD],[47,:EARTHQUAKE],[53,:FISSURE]]
       when 2;movelist=[[1,:SANDTOMB],[1,:ROTOTILLER],[1,:NIGHTSLASH],
                  [1,:TRIATTACK],[1,:SANDATTACK],[1,:METALCLAW],
                  [1,:GROWL],[4,:GROWL],[7,:ASTONISH],
                  [10,:MUDSLAP],[14,:MAGNITUDE],[18,:BULLDOZE],
                  [22,:SUCKERPUNCH],[25,:MUDBOMB],[30,:EARTHPOWER],[35,:DIG],
                  [41,:IRONHEAD],[47,:EARTHQUAKE],[53,:FISSURE]]
       end
       for i in movelist
         i[1]=getConst(PBMoves,i[1])
       end
       next movelist
    },
    "getMoveCompatibility"=>proc{|pokemon|
       next if pokemon.form==0
       movelist=[]
       case pokemon.form
       when 1; movelist=[# TMs
                 :WORKUP,:TOXIC,:HIDDENPOWER,:SUNNYDAY,:PROTECT,
                 :FRUSTRATION,:EARTHQUAKE,:RETURN,:DOUBLETEAM,
                 :SLUDGEBOMB,:SANDSTORM,:ROCKTOMB,:AERIELACE,:FACADE,
                 :REST,:ATTRACT,:THIEF,:ROUND,:ECHOEDVOICE,
                 :SHADOWCLAW,:BULLDOZE,:ROCKSLIDE,:SWAGGER,:SLEEPTALK,
                 :SUBSTITUTE,:FLASHCANNON,:CONFIDE,:HYPERBEAM,
                 :SLUDGEWAVE,:GIGAIMPACT,:STONEEDGE]
       when 2; movelist=[# TMs
                 :WORKUP,:TOXIC,:HIDDENPOWER,:SUNNYDAY,:PROTECT,
                 :FRUSTRATION,:EARTHQUAKE,:RETURN,:DOUBLETEAM,
                 :SLUDGEBOMB,:SANDSTORM,:ROCKTOMB,:AERIELACE,:FACADE,
                 :REST,:ATTRACT,:THIEF,:ROUND,:ECHOEDVOICE,
                 :SHADOWCLAW,:BULLDOZE,:ROCKSLIDE,:SWAGGER,:SLEEPTALK,
                 :SUBSTITUTE,:FLASHCANNON,:CONFIDE,:HYPERBEAM,
                 :SLUDGEWAVE,:GIGAIMPACT,:STONEEDGE]
       end
       for i in 0...movelist.length
         movelist[i]=getConst(PBMoves,movelist[i])
       end
       next movelist
    },
    "getAbilityList"=>proc{|pokemon|
       case pokemon.form
       when 1; next [[getID(PBAbilities,:SANDVEIL),0]] 
       when 2; next [[getID(PBAbilities,:SNOWCOAT),0]]   
       else;   next                                      
       end
    }
    })

    My RPG Maker doesn't indicate any mistake and I can normally start my game but the form specific Diglett never appear.
     
    Last edited by a moderator:
    Try swapping the order of the forms, check for form 2, then form 1, then form 0. the multiple forms script section usually does it that way and make sure they are defined in pokemonforms.txt as well as sprites labelled correctly. other than that, check the wiki
     
    Back
    Top