- 155
- Posts
- 10
- Years
- Seen Jun 11, 2021
I'm trying to get certain forms of Pokemon to appear on certain maps, much like Shellos. It seemed easy enough, but I have more than two forms of a Pokemon. I tried to get it to work with the code below, but instead, the regular form of Grimer always shows up on the map:
I'm not sure what I'm doing wrong. Can anyone help me, please?
Code:
MultipleForms.register(:GRIMER,{
"getFormOnCreation"=>proc{|pokemon|
maps=[[], # Map IDs for Alola form
[47,252]] # Map IDs for Chion form
for i in 0...maps.length
if $game_map && maps[i].include?($game_map.map_id)
next i+1
end
end
next 0
},
Last edited by a moderator: