In the game I'm working on, I want to include a move for enemies that causes the party to be unable to use items in battle, similar to how certain states prevent you from using Special or Magic. I went to the Status Ailment tab, but I noticed there are no options in the menu for disabling items. Is there a script for it or am I missing something?
State that Disables Items.
RPG Maker VXAce SupportI couldn't find any script but I improvised a short script that removes the item command if the actor has the designed state.
Code:
class Window_ActorCommand < Window_Command
def make_command_list
return unless @actor
add_attack_command
add_skill_commands
add_guard_command
add_item_command unless @actor.state?(2) #<== Id of the state that diables items
end
end
Original thread: https://forums.rpgmakerweb.com/threads/state-that-disables-items.85036/