How to have a character switch to another character after a level up

I’m making a game where after you collect a certain amount of objects, then you will power up into a stronger character . My problem is that I know how to change a character with a key command but that’s not what I want.

You just have to replace your key command with a custom event, and when the 100th object is collected, you just have to call your custom event