Battling with NPC

To battle with against a NPC, start talking 'hi', then suggest the battle with 'battle', then accept the battle with 'yes' and select the number of Pokémon in the end.