- 465
- Posts
- 8
- Years
- Seen Jun 17, 2024
Realise this is for a bit of an older version but apparently egg moves should be supported?
anyway, the code i use is a reworked version of the egg move inheritance in breeding.
This code DOES work if you swap out fSpecies for the baby species of the pokemon, however forms then get their base forms egg moves.
using fSpecies just throws back no moves and would cause crashes or never getting egg moves.
seen this code be used elsewhere and said it should work with forms. the species i am using has egg moves in its regular form and form 2, which im generating them on.
my only idea is the egg moves aren't saving to the eggEmerald data file, but this lands outside my expertese.
(for reference the species is vulpix, and form is form 2)
The code shown is also within a seperate def resetmoves, which is why fSpecies doesnt have pokemon. at the front.
any pointers would be great as its an annoying oversight by me until now, and want to fix it.
anyway, the code i use is a reworked version of the egg move inheritance in breeding.
Code:
pbRgssOpen("Data/eggEmerald.dat","rb"){|f|
f.pos=(fSpecies-1)*8
offset=f.fgetdw
length=f.fgetdw
if length>0
f.pos=offset
i=0; loop do break unless i<length
atk=f.fgetw
movelist2.push(atk)
i+=1
end
end
}
This code DOES work if you swap out fSpecies for the baby species of the pokemon, however forms then get their base forms egg moves.
using fSpecies just throws back no moves and would cause crashes or never getting egg moves.
seen this code be used elsewhere and said it should work with forms. the species i am using has egg moves in its regular form and form 2, which im generating them on.
my only idea is the egg moves aren't saving to the eggEmerald data file, but this lands outside my expertese.
(for reference the species is vulpix, and form is form 2)
The code shown is also within a seperate def resetmoves, which is why fSpecies doesnt have pokemon. at the front.
any pointers would be great as its an annoying oversight by me until now, and want to fix it.