(Solved) How can I get the last loaded save on the title screen?

I'm altering the rpg_scenes script to change the titlescreen graphic/music based on an in-game chapter variable, all of it is working well but I only know how to make it load a certain save file for the variable. Is there a way I could load the last save file played?

1656192764116.png
Never mind I figured it out lol
It's awesome that you were able to figure it out! Though, for the sake of people that might stumble on this thread in their own searches by chance--it may be good to post how you did it, just to help potential future people too, haha.
Oh yeah I should probably make it worth people's time lol, here's my fix:
1656195027426.png

It's awesome that you were able to figure it out! Though, for the sake of people that might stumble on this thread in their own searches by chance--it may be good to post how you did it, just to help potential future people too, haha.

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-can-i-get-the-last-loaded-save-on-the-title-screen.148883/