Run a common event upon saving?

I have seen plugins for running common events after loading but not for saving. I'm wanting something like this: Player saves file, somehow gets that save file's index- the one they just saved to (Is this even possible? If not, there's no point to the whole common event running thing)and a common event runs. Does anyone have any idea how to accomplish this?
Edit: Just realized this is probably not the right place for this ^^; Sorry Mods.
I just uploaded this li'l plugin: view/download Cae_SaveLoadSwitch (Google Drive). 😤

It lets you specify "save" and "load" switches; when a player saves or loads, the corresponding switch is turned on. With this you can make a common event with Autorun or Parallel trigger assigned to the switch, that switches itself off at the end. 🙂

Edit: oh wait, I forgot the "store file ID in a variable" bit, gimme a minute to update... 😴

Edit 2 @Hyouryuu-Na: OK, updated! There are now plugin parameters for "Save ID Variable" and "Load ID Variable". When a player saves, the save file ID is stored in the appropriate variable, then the switch is turned on. 😮‍💨
I'll try it out right away! Thank you so much <3
You're welcome! Should be OK since it's pretty simple, but let me know if it blows up or something, haha. 🙏
It works perfectly ^^

Original thread: https://forums.rpgmakerweb.com/threads/run-a-common-event-upon-saving.123133/