Vodun 7 Posted December 11, 2020 Hello I know how to remove different commands (like items, formation, save, skill, status) from menu using Window_MenuCommand in script editor. (like on image attached to post). Spoiler My question is. How can I connect this to switches that could be turned on/off in the game? Could be a nice tool for game progression unlocking certain menu options. Help is appreciated. 1 Share this post Link to post Share on other sites
PhoenixSoul 1,404 Posted December 11, 2020 "Help me! Reptilians are trying to take over the world!" gave me a giggle, lolz Okay. Try this. In place of main_commands_enabled, use $game_switches[x]. 1 Share this post Link to post Share on other sites
Kayzee 4,033 Posted December 11, 2020 (edited) I think you can mess around with Yanfly's Ace Menu Engine to do that... I think you would need to use custom commands though. Not too hard to make custom command versions of default menu items though I think? also: I personally say that it's best to avoid editing the default scripts. I mean you can, but it makes it harder to keep track of what has been changed. Edited December 11, 2020 by Kayzee 2 Share this post Link to post Share on other sites
Vodun 7 Posted December 15, 2020 /Sorry for a late respone, things in recent days have been hectic Kayzee, tried Yanfly's Ace Menu Engine but I would like to use it as the last resort. It changes quite a few things beside the commands so first I'll try some other method. PhoenixSoul, I did put $game_switches[x] but it didn't work. I got a screenshot showing the error and how I did this. Sadly I am not that quite in some manner good in doing RUBY scripting so the chance of me ducking things up is very high. Thanks for the reponses :) Spoiler 1 Share this post Link to post Share on other sites
roninator2 257 Posted December 15, 2020 (edited) 5 hours ago, Vodun said: $game_switches[x] but it didn't work Try instead of putting the condition inside the brackets, but at the end add_command(Vocab::item, :item, main_commands_enabled) if $game_switches[1] == true Edited December 15, 2020 by roninator2 1 Share this post Link to post Share on other sites
Vodun 7 Posted December 15, 2020 It works! I thought about using If or When with $game_switches[1] but thanks to my limited skills I couldn't get it to work. But now I know :) Thank so very much. 1 Share this post Link to post Share on other sites
PhoenixSoul 1,404 Posted December 15, 2020 Yeah; I had thought of placing that outside the bracket but wondered if main_commands_enabled was something that could be replaced. It was something I thought of on a whim. I typically use Yanfly's Menu Engine anyway. Anyway, glad ya got it to work. Share this post Link to post Share on other sites