- Joined
- Oct 18, 2013
- Messages
- 92
- Reaction score
- 19
- First Language
- English
- Primarily Uses
How do I seal the Item command from the Battle menu ?
Last edited by a moderator:
module Euphoriamodule ItemoffSWITCH_ID = 1 #Switch To Disable/Enable Items In Battle, Turn Switch Off To#Enable Items, On to Disableendend#===============================================================================class Window_ActorCommand < Window_Commanddef add_item_commandadd_command(Vocab::item, :item) unless $game_switches[Euphoria::Itemoff::SWITCH_ID]endend

Sorry that I wasn't being clear enough.First check your switch. That snippet uses switch #1. Are you already using that for something else? If you are, then chose another switch (and name it clearly so that you don't use it for something else) and change the switch number in the snippet to the new switch number.
If that is not the issue, then tell us more precisely what "ain't working" means. Does it do nothing at all? Does it stop part way through? Does it...?
Then most probably you either placed it wrong or have another incompatible script.Sorry that I wasn't being clear enough.What's not working is the entire script. I've changed the switch but even with changing this factor the item command remains on even when I toggle said switch on or off.
Hey,Yanfly Battle engine restructures a lot of the command menues on the battlescreen, it might be incompatible to this small snippet
Test what happens if you place the snippet above the battle engine, and test what happens if you temporarily disable the battleengine.

I used a character event just to show that the switch works.how and when did you control the switch? it needs to be done before entering battle, it can't be done while inside the battlescreen because then the command is already added.
Please show a screenshot of how you use the switch and how you call the battle.



You didn't give the screenshots I asked for, no one can help you without that info.BUMP