How to a pokemon monsters and pokeballs system?

I was wondering how can i make the basic pokemon system where you can catch them with pokeballs if you get close to a pokemon, you batttle and the pokemon and everything have health and levels, attacks are a little of a problem if you level up since you replace them with older attacks, so it’s basically a normal pokemon system like i said