SCP Inventory script

Hello everyone, I'm working on a SCP_Containment_Breach-inspired game. I'm looking for a script to create a grid inventory similar to the inventory from Containment breach. It's a limited inventory with space for ten items. You can discard items you don't need and stack similar items such as files and coins. I'm using the arrow keys instead of a mouse. When you move to a box with an item, the item's name is displayed beneath the box.

Sorry if I posted this on the wrong thread. I'm new here.

Example:
Example-Inventory-Containment-Breach.png
Well, if you send me the pictures that you could use in your game project, it would be easy for me to make such a menu. I would use the pictures to define the exact location of the boxes and the items they might contain later on. By the way, my offer might expire in a day or so.
Well, if you send me the pictures that you could use in your game project, it would be easy for me to make such a menu. I would use the pictures to define the exact location of the boxes and the items they might contain later on. By the way, my offer might expire in a day or so.
Thank you for replying so fast. I hope your offer still counts. Here I have a photo and a transparent png in the exact size of my game window and how I want it to be. I hope this is what you meant. The red glow around the first box is to indicate which box is selected.

Daphne-Lijffijt-example-inventory-game-scp.png


Daphne-Lijffijt-example-inventory-with_items-game-scp.png

background png and items
Daphne-Lijffijt-Background-inventory-game.png

Daphne-Lijffijt-Icon-key-inventory-game.png
Daphne-Lijffijt-Icon-pencil-inventory-game.png
Daphne-Lijffijt-redglow-inventory-game.png
If the game has a low to moderate amount of different items to pick up (<30), I don't think it would be too bad to just event this. Most of the work would come from putting in the conditional branches for what icon to display on each slot. I might be able to help with it, if the other guy doesn't already do it.
If the game has a low to moderate amount of different items to pick up (<30), I don't think it would be too bad to just event this. Most of the work would come from putting in the conditional branches for what icon to display on each slot. I might be able to help with it, if the other guy doesn't already do it.
Thank you for replaying. I'm planning on having more than 30 items. But that is mostly due to the number of files you can pick up and drinks you can buy in the vending machine. (The drinks are because of a reference to the Containment Breach game. It's meant to be as a funny gimmick.) And I'm not sure how to make an event-based inventory. I know how to make an event-based menu and title screen. But an event-based inventory feels like some kind of magic. I don't even know where to start.
I've been working on the script but I gotta tell you it's not finished.
Everything is implemented except for what happens if you hit the OK button.
Right now it only discards the selected item. 😛

Click Me!

Nope, I've never heard about Containment Breach at all.
I've been working on the script but I gotta tell you it's not finished.
Everything is implemented except for what happens if you hit the OK button.
Right now it only discards the selected item. 😛

Click Me!

Nope, I've never heard about Containment Breach at all.
Wow, you're really fast. Thank you so much. It already looks amazing. 😂 I tested it in my game and it has worked so far. (Minus the OK button, like you said.)
Is it possible to have the background behind the slots be more transparent instead of completely black? This is just a minor detail for ecstatic.

Oh, and Containment Breach is a free survival horror game based on the works of the SCP Foundation community. It was a very popular game among YouTubers back in 2012... That's 9 years ago... Now I feel old. Anyway, it's a good game. especially the unity remake. I recommend it.

Edit: There is a small bug that causes items to increase when are supposed to decrease. If you click on the extra item, all Items of the same name disappear, but the names remain visible beneath the slots.
Transparency isn't a problem but it is not just black. Actually I did not set a backdrop but you can do it if you follow the instructions included in my script.

I was also expecting you to tell me what does the menu do in CB after choosing an item so I could implement it there. 😛
Transparency isn't a problem but it is not just black. Actually I did not set a backdrop but you can do it if you follow the instructions included in my script.

I was also expecting you to tell me what does the menu do in CB after choosing an item so I could implement it there. 😛
That's good to know. In CB, the UI gives you the option to Use, Disgarde, and Stack. (Last one only with certain items.) It is, for example, possible to stack files together if you have a clipboard. You drag the files into the clipboard. If you click on the clipboard, your collected files/documents will pop up, and you can read them.
Two of the items I want to stack besides files and documents are pencils and coins. These don't need another Item to be stacked. But other than those (and maybe one or two others), you can only use one slot per item.
Each Item, of course, does its own thing when used. Keys can be used to open draws. Keycards can be selected to open a door. Pencils are used as a saving mechanic. Coins can be used to buy drinks. Healing items can be used to gain HP. etc.
A lot of items are triggered with common events.

Hopefully, this information is useful. I edited my previous reaction because I found a bug.
😳 how weird! Anyway the current implementation is temporary. Yet, I still need to ask you this, how does that submenu look like?

I am not sure if I can stack items the way that game does for RM only stores item IDs and their corresponding number of units aka pencils or keys, etc. It never stores items in their real sense...
😳 how weird! Anyway the current implementation is temporary. Yet, I still need to ask you this, how does that submenu look like?

I am not sure if I can stack items the way that game does for RM only stores item IDs and their corresponding number of units aka pencils or keys, etc. It never stores items in their real sense...
The whole stacking isn't an absolute must. If it's really difficult to do then you can leave it out.
The same goes for the second menu in the clipboard. I think it looks identical to the original inventory. with 10 slots for documents. X to return to the original inventory.
So do you just need a common window to display the use and discard commands? Keep in mind I don't know how that submenu looks like. A screenshot of that submenu would be appreciated if it is different from the typical RM window. I also need to know where that submenu is displayed. Does it appear in the middle of the screen? Or close to the selected item?

I would also like to know what items are easily stackable like pencils in the default RM menu and which ones aren't. I mean, are all keys treated as identical or not? If so they would be automatically stacked by default, no changes would be needed. If you got 2 or 3 different keys in mind, you would need to create 2 or 3 items in the database to avoid stacking them as a single type of keys.

Perhaps I have got an idea on how to stack files by skipping the default RM item stack feature. I guess I could create a separate (and invisible) "box" to keep them as actual items and not mere numbers. In that case I would like to ask you to send me 2 samples of files, they can be quite simple. Then I could do 1 out of 2 ways to let you keep separate file groups aka folders. For example I could ask you to set the values of the file IDs to a new CONSTANT or you could leave a specific note in that item's note box. Which option would be better for you?

By the way, you would need to use a script call to add that file as a simple way to let the menu learn what the file picture will be.
Here are a few pictures to make it easier to explain.
Select file or note:
example common.PNG
(Yes to the common window display. Not the gray one in the example.)
example clipboard 1.png
example clipboard 2.png

It is dropped in the clipboard. Icon clipboard will change if something is attached to it:
example clipboard 3.png

Click on the clipboard and go into the submenu:
(This is what you see when you click on the clipboard. It looks exactly the same as the other inventory.)
example clipboard 5.png


____________________________________________________________________

example multi items.png

Stacking of items. The ID for all the stackable Items are, 017-Pencil, 014-Coin, and 003-RedMarble. Those are the only items that can be stacked. Other items are treated as separate items. I have for every key or keycard a different ID. Most unstackable items, except for healing items such as painkillers have separate IDs. As for which option is better, values or item note box: I think note box could be a better option. But if it is easier for you to use the other method, go for it.

I wasn't sure what you meant by sending two files. What kind of files? Do you mean icons for the Items?
Well, I was referring to 2 samples that would be displayed as the actual paper you had found and are trying to read at that point.

So only coins, pencils and red marbles get stacked by default? 😳 Red marbles!?

I might upload a new demo later today, the next few hours I mean.
Ow, that's what you meant with samples. Well here are two paper icons and the clipboard icons and a sample document you can read. Yes, only pencils, coins, and marbles. The red marbles are a collectible item. If you collect all the hidden marbles, you get a secret ending. 😤
clipboard los.png
clipboard with paper.png
note 1.png
document example.png


sample document.png
Well, I've read your post after I had uploaded version 0.11.0 of KPockets Daphne. No paper stack is available but the rest of the features should be already implemented there.

Please read the instructions.

Anyway, you can find the demo by Clicking Here.
Well, I've read your post after I had uploaded version 0.11.0 of KPockets Daphne. No paper stack is available but the rest of the features should be already implemented there.

Please read the instructions.

Anyway, you can find the demo by Clicking Here.
Ik working really well. The bug from the previous version is also solved. One thing that I get is an error line 304 when I try to use an item that has the effect 'common event' attached to it. This also happened in the demo.
common event effect.PNG

error line 304.PNG
Oops! It seems I forgot to change the index there...
If you only got a single party member, replace @actor_window.index with 0 and then change the script version to 0.11.1.
Well, after many hours of hard work making sure I had got rid of all the bugs and other nuisances I could think off, now I can tell you that it seems to I have finished working on the final version 1.0.0 of KPockets Daphne script.

Perhaps I should have got a few more hours of sleep instead...

Anyway, now you can pay me for it. 😛

Nah, I had never asked you for any payment at all. I just wanted to imagine your face growing nervous for a brief moment. 😀
Well, after many hours of hard work making sure I had got rid of all the bugs and other nuisances I could think off, now I can tell you that it seems to I have finished working on the final version 1.0.0 of KPockets Daphne script.

Perhaps I should have got a few more hours of sleep instead...

Anyway, now you can pay me for it. 😛

Nah, I had never asked you for any payment at all. I just wanted to imagine your face growing nervous for a brief moment. 😀
I'm not sure if this is a bug or not. but when I tested your demo, selected a doc, and clicked stack, I got an error. (This is all still in the demo and not yet in my own game.)
error line 69.PNG


Sleep is important. So don't forget to do that. 😴

Original thread: https://forums.rpgmakerweb.com/threads/scp-inventory-script.139865/