Hi guys!
I wanted to ask the community exactly how I would control whether a menu would show in the main menu with the condition being whether or not a switch is on. The plugin does not have anything like this, and I have very very minimal JS experience.:rswt Also, I saw some posts which show something like ($gameSwitches.value(x) == true). Would I need to put an if statement before to check for the switch? Even so, what script call would I run inside the if block to show/hide a menu from the main menu? Also, I tried to figure it out myself before this and wanted to know, can I do a conditional branch using the event system, and then put a script call inside it to make it check if the condition is true, and then run the script, or would I need to script the whole thing, including the if statement?
So, my main question is, what script call should I run to show/hide a menu using YEP_MainMenuManager?
Sorry for the disorganised way of asking, but my mind right now is extremely disorganised.:rswt
Any help is appreciated!
Please and Thank you!:rhappy:
Show/Hide Menu Through Switch | YEP_MainMenuManager
● ARCHIVED · READ-ONLY
-
-
Put '$gameSwitches.value(x)' without the quotation marks in the Show portion under the command you want and you can then turn it on and off.
-
I'm sorry but I do not understand what you are saying. As I said, I have very very minimal experience in JavaScript. I forgot to say that I only learnt the basics of animation, and so I can't apply any of it to RPG MV. I would need to put that where? Are you talking about the plugin parameter Menu x Show? So would I need to write '$gameSwitches.value(x) true' instead of just 'true'?
Sorry about my lack of understanding. :rswt -
Ah, don't worry, I got it! Thanks for your help! For anyone else who views this, you put '$gameSwitches.value(x)' in the Menu Show area. e.g.
Menu 1 Name: 'Common Event 1'
Menu 1 Symbol: common event
Menu 1 Show: $gameSwitches.value(1) {This means that the value of game switch #0001 which can only be true or false will be passed into here}
Menu 1 Enabled: true
Menu 1 Ext: 1
Menu 1 Main Bind: this.callCommonEvent.bind(this)
Menu 1 Actor Bind:
@Uzuki Again, thanks for your help!