click on buttons if you've played pokemon, you know how this works, but this is a reminder: attack - use move to attack the enemy with item - use item to heal/do a function party - you would see multiple other pokemon run - run. also you and the enemy can dodge attacks, deal critical hits (soon), elemental stuff (soon), and MORE!!!
credit: @awesome_programmer1 (original project) nintendo/game freak for pokemon red/blue/yellow (or the whole pokemon franchise in general) also toby fox for undertale 1/21/19: - Added actual capability for party pokemon to faint. Some code is simplified for your convenience.