Solved How to make an autosave event?

You know how when you beat the PKMN league and register in the Hall of Fame, you get the credits and the game auto saves your data?

I want to replicate that. How do you create an autosave event where after the credits or other special events where the game auto save your data without the use of a button or timed rates?