Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
i=0
while i <=content.length-1
if content==type+"\n" && content[i+1]==name+"\n"
pkm=content[i+3]
i=content.length
end
i+=1
end
end
Being type the trainertype ("HIKER") and name the trainer`s name and possible versions ("Mary")/("Mary,2"), although for that last one you should include this:
if pkm.is_a?(String) && pkm.include?(",")
pkm=pkm.split (",") [0]
end
The result will be the Interal name of the first pkm of that trainer.
I'm sure there is a more direct way