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.
The last one you said is correct.
$player.party[0].hasType?(:FIRE)
Will check the first pokemon in the party and see if it has fire as one of its types.
The likely reason for the crash, is the game needs to know how many pokemon there are in the party.
if it tries to check a pokemon that doesnt...
Hi guys, I was hoping someone might be able to provide me with some help?
I am wanting to have, "Trainer A" walk into a room, stop at "Trainer B", the program to run a simulated battle between the two of them (we dont need to be able to see it happen). If "Trainer A" wins they continue forward...