02. Inventory
- Bence Nagy
- Nov 6, 2022
- 2 min read
The Weapon and Gem system is a key feature of the game. Players can obtain various gems and weapons while exploring the world, which is crucial for making the character stronger. Both weapons and gems have their own rarity levels (white for common, green for uncommon, blue for rare, purple for epic, and orange for legendary) and players can upgrade them by using materials for weapons or combining gems of the same type and rarity to create a stronger one. Players can equip and use four different weapons at once, each with its own unique skillsets for dealing damage or supporting the character by increasing the character or weapon's stats. Additionally, gems can be used to further increase the power of weapons.

The first tab in the game is the Weapon tab, where players can manage their weapons. The prototype is in an early stage, so only one weapon is currently available, but it is sufficient to demonstrate how the inventory works. By clicking on the weapon icon on the right side, players can view the item's details such as the name, auto-attack damage percentage, weapon skill description, and information about the equipped gems. The weapon icon itself displays the image of the item and the number of gems currently equipped out of the total available sockets (e.g. 3 out of 3 and 0 out of 5 in image 1).
The player can drag and drop the weapons on the weapon socket or the same way remove them and able to change the weapons order if it is necessary.
The second tab is the Gem Manager, where players can equip various gems to further upgrade their weapons. Each weapon has a certain number of sockets based on its rarity, and upgrading the weapon unlocks additional sockets. Players can equip and remove gems from sockets without any disadvantage or cost, and the process is as simple as dragging and dropping gems onto the sockets. If players click on a gem, they can view details about it on the right side. Gems can be used in sets, which means that if the rarity and type of the gem are the same, a further set bonus is activated. There are 2 or 4 pieces in a set, so players have a variety of options to choose from, such as equipping 2 pieces of 2 different types of gems or 4 pieces of one type of gem. The 2-piece set bonus provides an additional passive stat upgrade, and the 4-piece set bonuses require a trigger to activate and only remain for a certain amount of time.
If you aim to achieve a simple drag-and-drop system, I recommend researching Unity DragHandler interfaces, such as OnBeginDrag, IDragHandler, IEndDragHandler, and many more. If you prefer a tutorial video, I recommend watching one by CodeMonkey, as he clearly explains the interface and sets up an example project to demonstrate it.
Thanks for reading!
-Bence (Oliminor)






Comments