How to randomize chain commands in ''MOG_Chain_Commands'' for enabling switches.

Hello fellow game makers and programmers!

For anyone unfamiliar with ''MOG_Chain_Command'' it's basically a QTE script, which helps you assign QTEs for enabling certain switches. You input a set of keys within a short time frame and a switch assigned to a chain command of choice activates.
And in ''MOG_Active_Chain'' script there is that rather cool option, which allows for randomization of keys for input commands. But instead of activating switches, it does it for skills.
What I want is the same randomization of keys option for ''Chain_Commands'', which will allow me to assign enabling certain switches to randomized QTEs.
Can you please tell me, how should I edit the ''Chain_Commands'' script for it to give me said option?​

Here are the scripts in question.​

''MOG_Chain_Command''
​

''MOG_Active_Chain''




​

Original thread: https://forums.rpgmakerweb.com/threads/how-to-randomize-chain-commands-in-mog_chain_commands-for-enabling-switches.156806/