Hi guys. Didnt know if I should post this in work in progress or in blueprints. Feel free to move this post if it is in the wrong place.
I have never posted anything I have made before. I am not a coder, but I do love to do blueprints. I think its amazing, and really fun. I started with it when Ue4 was released.So I thought I would show off an inventory I am working on these days, its inspired by Diablo, but I made some of own choices.
It is all made in blueprint.
The inventory is using several data tables. One for armor, one for consumables and so on.
To create a world item, all you have to do is to duplicate one blueprint. Example, duplicate ArmorBase (wich is a child of a main itembase), in the new armorbase, set only a name in a rowname variable (example HelmetOfTheSparrow). Then make a new row in the ArmorDatatable, give it the same name. Fill out the rest of the information in that row, such as worldmesh, equipmesh, icon, strength and so on. Drag the new blueprint into world, and you are done.
In containers such as chests, ai, lockers. It spawns a random number of items depending on drop chance. It can spawn 1 item, it can spawn 3 items, or it can fill up the container to max. I have a 8 slot container, so max 8 items are spawned.
I am also going to make a crafting menu, that lets you make items and small camps. (such as a telt, fireplace, defence).
What the inventory can do for now.
-Visually show what quality the item is. (no outline = inferior, white = common, yellow = rare, purple = legendary)
-Drag and drop (works from all windows to all windows)
-Armor gets put into the correct equipment slot (legs to legs, head to head, chest to chest, and so on, if item is not armor it cant be used in equipment slots)
-Drop item into world
-Pickup single item from world
-Pickup item from containers (such as ai, chests, lockers, and so on)
-Single click, or drag item from “loot window” to main inventory to pick them up.
-Swap items correctly
-Stack Items correctly.
-Over stack limit adds a new item with the leftovers.
-Randomly spawns x number of items to loot, if its stackable, it will spawn x number for that item, will not go over stacklimit.
-You can set spawn chance on items from 0.1% to 100%.
-Tooltip with name, information, class, quality and equipment position. (early work in progress, more to come)
-If Inventory is Full you cant pick up items from containers or world. (if it is a swap it works)
-Stores loot, if you pick up an item from container, that container will no longer have that item.
-loot window closes when moving to far away from container, can also be closed by hitting the X button.
To do list :
Loot all button
Pretty design.
Better icons.
If item is spawned in loot container, do not spawn it again in the same container.
Give character and ai stats. (health, strength, agility, so on)
Give items stats. (strength etc if armor, damage etc if weapon, health etc if consumables)
Make item stats effect character stats
Make consumables usable and effect the character.
Make equipped mesh show up on character and ai trough basecharacter.
Make crafting
Make tooltip more complete when Items have more meaning.
Make coin count and spawn of coins to loot.
Cleanup blueprints, check for errors, and make them easy to figure out and look at (a work in progress)
Tool tip if you hover over a world item, should give you some information of what the item you are hovering over is.
Increase drop chance for items depending on main characters level. (is character level 3 produces bigger chance of dropping a level 3 armor)
Make hover over and clicked icon for different item quality (legendary, rare, common) Right now when hovered it just turns to the regular inferior icon)
Currently I am using a lot of random icons I have made fast, so its not very pretty, the overall design is just black. Its ugly, yes, but it works, and it can be redesigned to a high quality look I will continue this when I have time.
I made a legendary item with 0.2 % chance for dropping. It has never been seen again…
Shows inventory and tooltip and a lot of items I have dropped from inventory to world. You drag item into world to drop it, best way to drop item from inventory in a top down.
tooltip isnt there when you are not hovering over item
**Shows that items that are armor has a specific slot they need to be put in. Also shows loot window that appears when a container is clicked **
Blueprint of move/swap item. Its probably the most chaotic blueprint I got in there. I try to organize as best as I can, but sometimes things get out of hand.
Shows Armor data table. Easy to add new items both in world and make them drop on containers.
Shows that different loot containers has random items.