- 132
- Posts
- 10
- Years
- New Brunswick
- Seen May 6, 2023
How can I adjust this script so that the pokemon is able to learn the TM based on whether they can learn it through ANY means, be it by learning, move tutor, or the tm PBS file?
Compatibility is only determined by whether the TM is defined in tm.txt, and I'd like it to reference more than that. Any help is appreciated, thanks!
Code:
def pbSpeciesCompatible?(species,move)
ret=false
return false if species<=0
data=load_data("Data/tm.dat")
return false if !data[move]
return data[move].any? {|item| item==species }
end
Compatibility is only determined by whether the TM is defined in tm.txt, and I'd like it to reference more than that. Any help is appreciated, thanks!