Save action conditional branch

Anyone knows how to make a conditional branch that when you open the save screen in-game checks if you press action button (z) it saves and continues to the rest of the command list and if you press back (x) it does another list of commands?
you can't do this by events, it needs to be a script.
Moved to: Script Request
So where can i find such a script?
You can try to search the master script list (follow the link "how to use a script" in my signature), but most probably it doesn't exist yet.
That is why I moved it to Script Requests - as in "request someone else to write the script for you"
Ok, thanks but i cant find anything in the master script list...anyone who knows how to do this?
Anyone?
Can you provide more details? What list of commands are you wanting for each branch? Why? The more you explain what you are trying to do, the easier it is for someone to help you.

Original thread: https://forums.rpgmakerweb.com/threads/save-action-conditional-branch.78165/