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:
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:
Code:
MultipleForms.register(:DEERLING,{
"getFormOnCreation"=>proc{|pokemon|
winter_maps=[82,90,96,98,100] # Map IDs for winter form
autumn_maps=[] # Map IDs for autumn form
summer_maps=[]
if $game_map && winter_maps.include?($game_map.map_id)
next 3
elsif $game_map && autumn_maps.include?($game_map.map_id)
next 2
elsif $game_map && summer_maps.include?($game_map.map_id)
next 1
else
next 0
end
}
})
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:
Code:
MultipleForms.register(:VIVILLON,{
"getFormOnCreation"=>proc{|pokemon|
pokeball_maps=[] # Map IDs for Poké Ball pattern / ID del mapa para Motivo Poké Ball
fantasy_maps=[] # Map IDs for Fantasy pattern / ID del mapa para Motivo Fantasía
moonsoon_maps=[] # Map IDs for Moonsoon pattern / ID del mapa para Motivo Monzón
jungle_maps=[] # Map IDs for Jungle pattern / ID del mapa para Motivo Jungla
ocean_maps=[] # Map IDs for Ocean pattern / ID del mapa para Motivo Océano
sun_maps=[] # Map IDs for Sun pattern / ID del mapa para Motivo Solar
savanna_maps=[] # Map IDs for Savanna pattern / ID del mapa para Motivo Pantano
river_maps=[] # Map IDs for River pattern / ID del mapa para Motivo Oasis
sandstorm_maps=[] # Map IDs for Sandstorm pattern / ID del mapa para Motivo Desierto
highplains_maps=[] # Map IDs for High Plains pattern / ID del mapa para Motivo Estepa
archipelago_maps=[] # Map IDs for Archipelago pattern / ID del mapa para Motivo Isleño
marine_maps=[] # Map IDs for Marine pattern / ID del mapa para Motivo Marino
modern_maps=[] # Map IDs for Modern pattern / ID del mapa para Motivo Moderno
icysnow_maps=[] # Map IDs for Icy Snow pattern / ID del mapa para Motivo Polar
elegant_maps=[] # Map IDs for Elegant pattern / ID del mapa para Motivo Oriental
garden_maps=[] # Map IDs for Garden pattern / ID del mapa para Motivo Vergel
continental_maps=[] # Map IDs for Continental pattern / ID del mapa para Motivo Continental
tundra_maps=[] # Map IDs for Tundra pattern / ID del mapa para Motivo Tundra
polar_maps=[] # Map IDs for Polar pattern / ID del mapa para Motivo Taiga
if $game_map && pokeball_maps.include?($game_map.map_id)
next 19
elsif $game_map && fantasy_maps.include?($game_map.map_id)
next 18
elsif $game_map && moonsoon_maps.include?($game_map.map_id)
next 17
elsif $game_map && jungle_maps.include?($game_map.map_id)
next 16
elsif $game_map && ocean_maps.include?($game_map.map_id)
next 15
elsif $game_map && sun_maps.include?($game_map.map_id)
next 14
elsif $game_map && savanna_maps.include?($game_map.map_id)
next 13
elsif $game_map && river_maps.include?($game_map.map_id)
next 12
elsif $game_map && sandstorm_maps.include?($game_map.map_id)
next 11
elsif $game_map && highplains_maps.include?($game_map.map_id)
next 10
elsif $game_map && archipelago_maps.include?($game_map.map_id)
next 9
elsif $game_map && marine_maps.include?($game_map.map_id)
next 8
elsif $game_map && modern_maps.include?($game_map.map_id)
next 7
elsif $game_map && icysnow_maps.include?($game_map.map_id)
next 6
elsif $game_map && elegant_maps.include?($game_map.map_id)
next 5
elsif $game_map && garden_maps.include?($game_map.map_id)
next 4
elsif $game_map && continental_maps.include?($game_map.map_id)
next 3
elsif $game_map && tundra_maps.include?($game_map.map_id)
next 2
elsif $game_map && polar_maps.include?($game_map.map_id)
next 1
else
next 0
end
}
})
Last edited: