I used to have on 17.2 this script (made by Rot8er_ConeX) that made once I activated switch 302, all the moves of the Pokémon being randomized.
I'm trying to add this in 18.1, but with the moves now loaded from species_movesets.dat, I'm not really sure how to implement a function like this one anymore. Any tips?
Spoiler:
# Returns the list of moves this Pokémon can learn by levelling up.
def getMoveList
movelist=[]
atkdata=pbRgssOpen("Data/attacksRS.dat","rb")
offset=atkdata.getOffset(self.fSpecies-1)
length=atkdata.getLength(self.fSpecies-1)>>1
atkdata.pos=offset
for k in 0..length-1
level=atkdata.fgetw
move=atkdata.fgetw
if move != nil
[S-HIGHLIGHT] move=rand(PBMoves::GLAMOUR)+1 if $game_switches[301]
movelist.push([level,move]) if !(isConst?(move,PBMoves,:CHATTER) && !isConst?(self.species,PBSpecies,:CHATOT))[/S-HIGHLIGHT]
end
end
atkdata.close
return movelist
end
def getMoveList
movelist=[]
atkdata=pbRgssOpen("Data/attacksRS.dat","rb")
offset=atkdata.getOffset(self.fSpecies-1)
length=atkdata.getLength(self.fSpecies-1)>>1
atkdata.pos=offset
for k in 0..length-1
level=atkdata.fgetw
move=atkdata.fgetw
if move != nil
[S-HIGHLIGHT] move=rand(PBMoves::GLAMOUR)+1 if $game_switches[301]
movelist.push([level,move]) if !(isConst?(move,PBMoves,:CHATTER) && !isConst?(self.species,PBSpecies,:CHATOT))[/S-HIGHLIGHT]
end
end
atkdata.close
return movelist
end
I'm trying to add this in 18.1, but with the moves now loaded from species_movesets.dat, I'm not really sure how to implement a function like this one anymore. Any tips?