How to delete certain items from the items list?

Um, I'm sorry if I'm posting this where I'm not supposed to, this is my first time creating a topic, but here's the deal:


I've been making my first game for like 3-4 months now and, when I started it, I had absolutely no idea how to use switches (nor how to do anything in general bc I was learning while making the game, really) so, instead of using switches to make progress with the events, I used items and conditional branches. Thing is, I created certain items for the sole purpose of making the game work as I wanted it to- they're not required in the game or anything. Now that I completed almost half of the game I learned how to use switches, but there is so much progress and it would be a lot of trouble to go back and change items for switches, so I was wondering if there's some kind of script or anything I can do at all to prevent these items from appearing in the items list? I've already left their names blank, set them as key items and used a script by DerTraveler to hide item quantities, so really, if I just leave the items it won't be so bad but I still wanted to try to do something to take them out of the list. When I open it, it looks like the picture I attached. Thanks in advance for your time reading this!

printhetaoni.png
I've moved this thread to RPG Maker VX Ace . Please be sure to post your threads in the correct forum next time. Thank you.
Not that I'm aware of - by definition if you have to add these items to the player's inventory to make the game work, having a script that takes them out will undo that.


Perhaps make a virtue of necessity?  I'm just guessing here, as you haven't specified exactly what the items do, nor how many of them there are.  If there are only a few, perhaps give them a page or scroll graphic and turn them into "Notes" that the player has to record their journey/adventure.  They could be anything you like as their function is simply to exist.
There's nothing that will do it for you automatically.  Your options are:


- go through and change them all manually


- leave them as they are


- get someone to write a script for you that will 'hide' items from the menu (and maybe in battle as well), if you use a certain tag in the note field


The third option is probably the best one.
There's nothing that will do it for you automatically.  Your options are:


- go through and change them all manually


- leave them as they are


- get someone to write a script for you that will 'hide' items from the menu (and maybe in battle as well), if you use a certain tag in the note field


The third option is probably the best one.

I see. I don't think I'll find anyone willing to help me with that, but thank you for your help anyway!! Since they don't really bother the game that much and will be removed later on the game, I'll most probably leave them as they are.
Not that I'm aware of - by definition if you have to add these items to the player's inventory to make the game work, having a script that takes them out will undo that.


Perhaps make a virtue of necessity?  I'm just guessing here, as you haven't specified exactly what the items do, nor how many of them there are.  If there are only a few, perhaps give them a page or scroll graphic and turn them into "Notes" that the player has to record their journey/adventure.  They could be anything you like as their function is simply to exist.

That's an idea, too! The items basically just take place as if they were switches, to like, change character speeches, transfer players to different maps if x item is on the list, etc etc. But I'll probably just leave them as they are, then, since they will be deleted later on the game. Thanks for your help!!
You assume a lot 😉

Code:
class Window_ItemList < Window_Selectable
  alias hide_items_include? include?
  def include?(item)
    return false if item.is_a?(RPG::Item) && item.note =~ /<hide>/
    hide_items_include?(item)
  end
end



Paste into a new script slot (and name the slot).  Then put <hide> in the note box of any items of this type, that you don't want shown in the menu.


Should work from the menu as well as in battles, though I don't think it's necessary for battles anyway, depending on the scope you gave the items.
CrazyCookieManiac, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


If you want to reply to 2 separate people, just use this convention


@thefirstperson'susername   type your reply


@thesecondperson'susername  type your reply to this one.


Using that convention will also mean that you don't need to quote whole posts to indicate who you are replying to.  Whole quote posting slows down the loading of the page and scrolling down, and is especially difficult for anyone accessing this on their phone.  The person's username will make it crystal clear who you are answering.
and it'll tag them, so they get a notification that you replied.  Love that feature!
@ShazOh, wow, thank you so much!!! That really saved me!!! :"DDDDD
And, sorry about the double posting. I really have no idea how to use this site yet _( :'3_|_)_
You just double posted again.  That means posting more than once in a row, for ANY reason.


If you want to add something to a thread and the last post is yours and it's less than 3 days old, just edit your post rather than making a new one.


Forum rules are in a tab at the top of the page.
@ShazYes i just noticed and that was incredibly stupid of me to do. This is embarassing x'D I tried to delete it immediately but saw nowhere to do so. Anyway I'm just going to keep quiet now to avoid doing anything else that's against the rules. Thanks a lot for you help again!
No need to keep quiet!  It can take a bit of time to get used to everything, but now you know about this, you should be fine.
@ksjp17Aah thank you for being nice and understanding _( :'D_|_)_ I'll be careful from now on!!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-delete-certain-items-from-the-items-list.69417/