How to make a Pokemon like encounter script?

How to make a Pokemon like encounter script?

Could you be more specific? Are you asking how to make an entire game? Or are you making a minigame within a game?

Describe what is needed as if you were talking to someone who does not know what a Pokémon is.