Questions tagged [inventory]

58 questions
256
votes
36 answers

How to prevent the "Too awesome to use" syndrome?

When you give the player a rare but powerful item which can only be used once but is never really required to proceed, most players will not use it at all, because they are waiting for the perfect moment. But even when this moment comes, they will…
Philipp
  • 123,682
  • 29
  • 265
  • 346
14
votes
4 answers

How can I implement an inventory that stores different types of items?

Let’s assume I want to create an RPG with collectible items my character can pick up and store in his inventory. One item could be a sword, with an attack, defense, and level attributes. Another item could be an apple, heal percentage, freshness,…
Alex Donnelly
  • 165
  • 1
  • 5
12
votes
2 answers

Auto-organized / smart inventory system?

for the past week I've been working on an inventory system with Unity3D. At first I got help from the guys at Design3 but it wasn't too long till we split path, because I really didn't like the way they did their code, it didn't have any smell of…
VeXe
7
votes
2 answers

How to implement special weapon and armor effects (ex: vampiric, holy, damage shield, thorns)?

I'm working on the inventory system for my game, and am interested in how do I implement additional weapon and armor properties that are not just damage or armor? If all I have is damage and armor, the equation is simple: damage = weapon damage -…
6
votes
2 answers

How to manage grid-based inventory with items larger than 1x1 cell?

Me and my team have been trying to implement some sort of inventory system. We've set our eyes on an inventory system where some items may take up more than one box on the grid system, sort of like the one used in SOTS the pit, like this: (source:…
Geoffroi
  • 495
  • 1
  • 5
  • 8
5
votes
1 answer

How are game menus logically structured?

I've been struggling with making a game menu system in Unity for some time now. I spent time developing a way to help myself understand how game menus are connected together. Right now, I'm calling it the Screen-Menu relationship. In this…
Rxanadu
  • 93
  • 5
4
votes
2 answers

How to design a drag and drop inventory system with transition from icons to game objects?

I’m trying to write a simple 2D game in Unity with an inventory where the user can drag and drop different objects on the screen. I need the inventory to contain icons which on drag will become different game objects. I’m struggling in positioning…
moria am
  • 43
  • 1
  • 4
4
votes
2 answers

How do Inventories work?

I am trying to create a inventory screen / system for my game. And I don't know how it will work. I'm creating it in unity. I was thinking of making a database of all items and a database of items in inventory. However unity has no database…
Txm
  • 143
  • 1
  • 8
3
votes
0 answers

How do you deal with loot in an RPG where all mosters drop their full inventory?

I currently have a system where both players and monsters in an RPG use equipment. This means that when an enemy is killed, I can technically drop everything they have . These are armor and weapons that players may choose to equip. This is fun for…
Alex Stone
  • 573
  • 1
  • 6
  • 15
3
votes
2 answers

C# Item system design approach, should I use abstract classes, interfaces or virutals?

I'm working on a Resident Evil 1/2/3/0/Remake type of game. Currently I've done a big part of the inventory system (here's a link if you wanna see my inventory, pretty outdated, added a lot of features and made a lot of enhancements) Now I'm…
vexe
  • 342
  • 2
  • 4
  • 14
3
votes
2 answers

Why do RPGs require you to "use" items instead of unlocking them on drop?

Many RPGs have you collecting items (like books, or cosmetics) as inventory items, which you then have to "use" to actually unlock their benefits (say a higher knowledge stat, or being able to use the cosmetic on your character), forcing you to stop…
uliwitness
  • 1,247
  • 1
  • 9
  • 12
3
votes
2 answers

Ideas/suggestions to implement an item combination system

I'm designing a game where there is a relatively small set of items. A single player holds an inventory of item slots. Each item slot contains a single item. The inventory allows you to use the item directly, move item around the slots (to…
ijacquez
  • 99
  • 2
  • 9
3
votes
1 answer

Bukkit "Could not pass Event" error

I'm trying to make a bukkit plugin, which implements backpacks in the game if the player has the correct item (Enchanted Normal book with Efficiency 10 and Unbreaking 10, to be uncraftable). I want to save the inventory using the built-in…
Bálint
  • 15,087
  • 2
  • 40
  • 58
2
votes
1 answer

How should I store grid-based character inventories in the database?

I used to encode the whole inventory data into binary but I'm thinking of doing something different now. The inventory has a 64 slots in an 8×8 grid. Large items like weapons fill up 6 to 8 slots in a vertical rectangle, while potions take 1 slot.…
majidarif
  • 241
  • 4
  • 15
2
votes
2 answers

Unlimited inventory system?

I am working on a small game, I need to add an unlimited inventory to the game but I am not sure how to do it. I have an inventory system with a specific amount of slots, here it is: <?xml version="1.0"?> <player> <username> XXX </username>…
Melon
  • 31
  • 3
1
2 3 4