- 155
- Posts
- 11
- Years
- Seen Jun 11, 2021
So I was trying to add Ancient Genesect to my game as the Genesect you get from a fossil. I tried to code it to where the drives that work with normal Genesect wouldn't work with the ancient Genesect, but the game crashed whenever I gave Ancient Genesect a drive.
I have a feeling I'm doing something wrong, but I'm not sure what. Whenever I try giving it a drive with this code, I get this error:
Code:
MultipleForms.register(:GENESECT,{
"getForm"=>proc{|pokemon|
maps=[79,84]
next 1 if isConst?(pokemon.item,PBItems,:SHOCKDRIVE) && pokemon.form!=5
next 2 if isConst?(pokemon.item,PBItems,:BURNDRIVE) && pokemon.form!=5
next 3 if isConst?(pokemon.item,PBItems,:CHILLDRIVE) && pokemon.form!=5
next 4 if isConst?(pokemon.item,PBItems,:DOUSEDRIVE) && pokemon.form!=5
if ($game_map && maps.include?($game_map.map_id))
next 5
end
next 0
}
Code:
Exception: SystemStackError
Message: stack level too deep
Pokemon_MultipleForms:1059
Pokemon_MultipleForms:1055:in `call'
Pokemon_MultipleForms:311:in `call'
Pokemon_MultipleForms:6:in `form'
Pokemon_MultipleForms:1059
Pokemon_MultipleForms:1055:in `call'
Pokemon_MultipleForms:311:in `call'
Pokemon_MultipleForms:6:in `form'
Pokemon_MultipleForms:1059
Pokemon_MultipleForms:1055:in `call'
Last edited: