Specific error while using item

I just created an item to be used in game, not the first one ive done, and now when i use the item  its effects kick in as expected,,,,but when i try to use it a second time which wouldn't do anything anyways, i get this error.....


Capture.PNG


What exactly is going wrong??
Hi,


That looks like an oversight in the script. Usually you can't use items when all of your partymembers are immovable. However, if you incapacitate your party by using an item you can still try to use the item again.


You could try this script to fix that if it is a problem for your game:


class Scene_ItemBase


  #--------------------------------------------------------------------------
  # * Determine if Item is Usable
  #--------------------------------------------------------------------------
  def item_usable?
    user && user.usable?(item) && item_effects_valid?
  end



end
Alright cool thanks...now i get a resounding buzzer sound when trying to double use the item which is what i wanted cause your not supposed to be able to use this particular item again until the status ailment has subsided.Thanks for the response saved me some headache....... (And it hasn't been a problem up until i tried using this particular custom item,i couldn't tell ya why this error occurred in the first place.)

Original thread: https://forums.rpgmakerweb.com/threads/specific-error-while-using-item.59575/