I am wondering if it's possible to show or hide certain options via a switch. For example: I might want some options that can be accessed from the main menu, but once the game is loaded, those options are no longer visible.
I'm no coding expert, I just fired blind with this little code in hopes it might work but I genuinely have no idea.
(Switch #39 is a switch that is used to determine when the player is...well...playing the game)
Testing the game, no errors are given so I don't think my code's syntax is wrong...but, it also doesn't function....like....at all. Before activating switch 39, the options are visible in the options menu. Once activating switch 39...the options are still visible in the options menu.
Any ideas?
(In case you missed the title of the thread: this is pertaining to YEP Options Core)
I'm no coding expert, I just fired blind with this little code in hopes it might work but I genuinely have no idea.
Code:
if ($gameSwitches.value[39] === true) {
show = false;
} else {
show = true;
}
Testing the game, no errors are given so I don't think my code's syntax is wrong...but, it also doesn't function....like....at all. Before activating switch 39, the options are visible in the options menu. Once activating switch 39...the options are still visible in the options menu.
Any ideas?
(In case you missed the title of the thread: this is pertaining to YEP Options Core)


