var action = new Game_Action(user); action.setItemObject(item); action.apply(target); action.applyGlobal(); $gameParty.consumeItem(item);