Dynamicly changing choices with switches?

Is there any way to make it so more than four choices with switches, so that turning on/off certain game switches changes the avalible choices?
https://www.rpgmakercentral.com/topic/8842-choice-options/
https://forums.rpgmakerweb.com/index.php?threads/large-choices-built-in-multiple-choices.6747/

Googling result, idk if both works together, but I assume it works.

I can confirm these work together.

For the code, it's pretty simple:
X = choice you want hidden
Y = switch number

Switch is OFF -> hide choice:
Code:
hide_choice(X, "!$game_switches[Y]")

Switch is ON -> hide choice:
Code:
hide_choice(X, "$game_switches[Y]")

Put the code part into a scriptcall and adjust accordingly, then put a text box, and then your choices.

Original thread: https://forums.rpgmakerweb.com/threads/dynamicly-changing-choices-with-switches.113831/