So I've come across something strange in my script. It was working not too long ago but suddenly stopping. What's happening is that I'm unable to encounter alolan forms of pokemon whenever I add in their tm list. It works without their tm list and I copied and edited the script from wormadam. Using rattata as an example this is what I have:
Location:
MultipleForms.register(:RATTATA,{
TM code:
and the pokemonforms text folder:
does anyone know why this is happening and why it would possibly do this?
(Also I tested wormadam to see if anything is off and it wasn't. It works fine for wormadam but not for rattata)
Location:
MultipleForms.register(:RATTATA,{
Spoiler:
"getFormOnCreation"=>proc{|pokemon|
maps=[3]
if $game_map && maps.include?($game_map.map_id)
next 1
else
next 0
end
}
})
maps=[3]
if $game_map && maps.include?($game_map.map_id)
next 1
else
next 0
end
}
})
TM code:
Spoiler:
MultipleForms.register(:RATTATA,{
"getMoveCompatibility"=>proc{|pokemon|
next if pokemon.form==0
movelist=[]
case pokemon.form
when 1; movelist=[# TMs
:TOXIC,:HIDDENPOWER,:SUNNYDAY,:TAUNT,:ICEBEAM,
:BLIZZARD,:PROTECT,:RAINDANCE,:FRUSTRATION,:RETURN,
:SHADOWBALL,:DOUBLETEAM,:SLUDGEBOMB,:TORMENT,:FACADE,
:REST,:ATTRACT,:THIEF,:ROUND,:QUASH,
:EMBARGO,:SHADOWCLAW,:GRASSKNOT,:SWAGGER,:SLEEPTALK,
:UTURN,:SUBSTITUTE,:SNARL,:DARKPULSE,:CONFIDE]
end
for i in 0...movelist.length
movelist=getConst(PBMoves,movelist)
end
next movelist
}
})
"getMoveCompatibility"=>proc{|pokemon|
next if pokemon.form==0
movelist=[]
case pokemon.form
when 1; movelist=[# TMs
:TOXIC,:HIDDENPOWER,:SUNNYDAY,:TAUNT,:ICEBEAM,
:BLIZZARD,:PROTECT,:RAINDANCE,:FRUSTRATION,:RETURN,
:SHADOWBALL,:DOUBLETEAM,:SLUDGEBOMB,:TORMENT,:FACADE,
:REST,:ATTRACT,:THIEF,:ROUND,:QUASH,
:EMBARGO,:SHADOWCLAW,:GRASSKNOT,:SWAGGER,:SLEEPTALK,
:UTURN,:SUBSTITUTE,:SNARL,:DARKPULSE,:CONFIDE]
end
for i in 0...movelist.length
movelist=getConst(PBMoves,movelist)
end
next movelist
}
})
and the pokemonforms text folder:
Spoiler:
[RATTATA-1]
FormName=Alola Form
Type1=DARK
Type2=NORMAL
EffortPoints=0,0,0,0,0,1
Abilities=GLUTTONY,HUSTLE
HiddenAbility=THICKFAT
Color=Black
FormName=Alola Form
Type1=DARK
Type2=NORMAL
EffortPoints=0,0,0,0,0,1
Abilities=GLUTTONY,HUSTLE
HiddenAbility=THICKFAT
Color=Black
does anyone know why this is happening and why it would possibly do this?
(Also I tested wormadam to see if anything is off and it wasn't. It works fine for wormadam but not for rattata)
Last edited: