S-Inventory: Dynamic inventory system!

Discussion in 'Assets and Asset Store' started by SoumiDelRio, Jul 29, 2013.

  1. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    [​IMG]
    Introduction:

    This is an inventory system that anyone can setup in few minutes. This system is easy to edit from the inspector without having to modify scripts. It’s suitable for RPG games. This inventory system also includes an equipment system, merchant system and a skill bar system. It is also available in C# and JS.

    Demo:

    Web player link: Click Me!

    Buy:

    Get S-Inventory from the asset store: $15

    [​IMG]

    Documentation:

    Learn how to use S-Inventory here.

    Features:

    - Dynamic inventory system (Edit everything from the inspector without touching the scripts).
    - The best solution for RPG games!
    - Comes with a 18 pages document full of instructions to help you setup the inventory system.
    - Fully commented scripts.
    - Mobile friendly!
    - Custom Events to customize the whole system by coding!
    - Editing the inventory manager from external scripts (call various functions in your own scripts).
    - Two different item pickup methods (Mouse and keyboard).
    - Two different item drop methods (Re-spawn and destroy).
    - Creating items easily (simply by adding a script to an object).
    - Two different types of items: Bag items and Currencies.
    - Advanced Inventory GUI (Shows a description of the item on mouse hover, drag and drop items easily, using, dropping items, moving the GUI around the screen, customizing the size of the inventory and the size of the items, change textures easily, sounds, etc…).
    - Load and save items (Currencies and bag items).
    - Item Groups (The solution to create a treasure object for an RPG game: a group of items easy to create).
    - Vendor system: Create vendors by dragging a script into the vendor object.
    - Buy and sell your items for vendors: The ability to buy items and paying for them, sell them and receive payment and the ability to take back what you just sold.
    - Equipment system: Easily create your custom equipment slots (3 different ways to equip an item).
    - Skill Bar system: Manage a dynamic skill bar (Slot names, slot sizes, number, GUI style, etc…) and link it to your scripts easily.
    - Crafting system: Full crafting system that allows you to create unlimited recipes and customize the crafting window to your needs.

    ChangeLog:

    v1.00 - 14/01/2014:

    Initial version.

    v1.01 – 25/09/2013:

    - Added a sound when the player tries to add an item while the inventory is full.
    - Added a label that appears to inform the player when an item is added, removed, equipped or when the inventory is full.
    - Fixed the inventory size bug.

    v1.02 – 03/11/2013:

    - Added a skill bar system to the package.
    - Dynamic skill bar that you can edit the number of slots in it, their size, texture, GUI style and many more options.
    - Link the skill bar easily to your scripts using some special functions.
    - Added health potion item.

    v1.03 – 08/12/2013:

    - Converted all the scripts to C#.
    - The package now includes C# and JS scripts at the same price.

    v1.05 – 16/05/2014:

    - Fixed bug while dragging the inventory windows on the C# version.
    - Equipment GUI window re-scripted to minimize the lag on mobile devices.
    - Added a GUI button that shows/hides the inventory window.
    - Added a GUI button that shows/hides the equipment window.
    - Added a GUI button that picks up items (without the use of mouse and keyboard).
    - Added a new inventory GUI window position: middle screen.
    - Added custom events: callbacks used to customize the inventory, equipment, vendor and skill bar system with code.

    v1.06
    – 11/07/2014:

    - Fixed the item's description display when the mouse hovers over one of the inventory's items.
    - Improved the GUI skin for the inventory, skill bar, equipment, vendor and item group menus.
    - Fixed some other small bugs.

    v1.07 – 15/08/2014:

    - Added a crafting system.
    - Customize the crafting window to your needs.
    - Unlimited recipes.
    - New custom event when an item is crafted.
    Last edited: Aug 16, 2014
  2. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Screen Shots:
    [​IMG] [​IMG]

    [​IMG] [​IMG]
    [​IMG]
    [​IMG]

    [​IMG][​IMG]
    [​IMG]
    Last edited: Aug 16, 2014
  3. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    UPDATE: While dropping an item, if its amount is more than 1. Then the player will have to enter the amount to drop from this amount.
    [​IMG]
    Last edited: May 16, 2014
  4. Japhet Eisenhdorf

    Japhet Eisenhdorf

    New Member

    Joined:
    Jul 31, 2013
    Messages:
    22
    Hello Soumia,

    Great Project!!
    Last edited: Nov 26, 2013
  5. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Hello Japhet,

    Thank you for this nice comment!
    This project will be released in 2 weeks maximum. It will cost from 10$ to 15$ (I don't think that's expensive haha). I still have more ideas to improve this inventory system. Also, If you have any suggestions for features you want to see in this inventory system, please let me know.

    Thanks,
    SoumiDelRio.
  6. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    New update:
    - Sounds added when: picking up an item, dropping it, picking up a coin (2 types), opening the inventory and closing it.
    - Saving and loading items and coins: I did this using PlayerPrefs. But if you have any suggestions for other saving and loading methods, please let me know.
    - I have added some new functions in the script like "ClearItems", "ClearSavedItems", "ReloadItems", "Save" and many more in order to make the system editable by external scripts.

    Web Player will be updated tomorrow.
  7. John G.

    John G.

    Member

    Joined:
    Mar 21, 2013
    Messages:
    380
    Can it be setup that items can take up more than 1 square. Eg a rifle could be 3 squares long, and have it that the item is rotatable for space management.
  8. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Very good suggestion John G! Thank you! I'll see what I can do.
    Last edited: Aug 2, 2013
  9. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Another small update:
    - If you are using the mouse pick up method, an information box will be displayed whenever your mouse hover over an item.
    - If you are using the keyboard pick up method, an information box will be displayed whenever your player is in collision with an item.
    Here's a screen shot (The mouse cursor was removed, dunno why):

    [​IMG]

    Also I have updated the web player: here's the new link: http://bit.ly/14PlRJb
  10. Japhet Eisenhdorf

    Japhet Eisenhdorf

    New Member

    Joined:
    Jul 31, 2013
    Messages:
    22
    Hello Soumia,

    Can u add some feature like saving your inventory and equipment? so you won't lose the item that you gathered when you change scene.

    Thanks,
    Japhet Eisenhdorf
  11. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Hey Japhet,

    I already finished that saving and loading part so you won't lose items when change scene or leave the game and you will be the one who decides whether to save your items and load them or not. Currently, I'm working on many new features such as dragging and dropping items inside the inventory, showing the short description on mouse hover (in the inventory GUI), adding a bag item and item groups (an object that contains many items at the same item and you can choose which item to take or take all of them) and few more things.

    Thank you,
    SoumiDelRio
  12. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Big updates:
    - You can now drag and drop items inside the inventory (I have re-written some parts of the scripts and improved the slot system in order for this to work).
    - Fixed few bugs in the keyboard pick up method. (It's fully working now).
    - When the mouse is over an item inside the inventory it shows a short description of this item. (This short description can be modified through the inspector in the item script).
    - Removed the scroll view vector.
    - You can now choose, through the inspector, if you want your dropped items to get destroyed or re-spawned in the real world. If you choose the second option you are able to re-equip them.
    - I'm no longer using buttons in the inventory GUI for items, I switched to textures.

    Few screen shots of today's work:
    [​IMG][​IMG]

    I'll upload the web player tomorrow in which you will be able to modify many things in the inventory (such as drop type, equip type etc...) using simple GUI buttons and check boxs.
    Last edited: Aug 5, 2013
  13. Japhet Eisenhdorf

    Japhet Eisenhdorf

    New Member

    Joined:
    Jul 31, 2013
    Messages:
    22
    Great Update! Hoping to see the updated web player!

    More Power Soumia!
  14. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    I'm sure you'll see more in the next few days, thank you for your comments Japhet!
    I'll upload the web player now.

    EDIT:

    Newest web player link
    Last edited: Aug 6, 2013
  15. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    UPDATE:
    - I have finally finished the Item Group script which can hold an amount of items and the player is able to take a look at these items, take all of them or pick few of them. This script works perfectly with a treasure object. Like all the three other scripts, you can modify everything from the inspector without editing anything in the script.

    P.S: This new features is not in the web player, it will be added in the next version.

    Check out these screen shots:
    [​IMG]
    Last edited: Aug 13, 2013
  16. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Small update:
    - I've been testing this system and looking for bugs today, I found few and I fixed them all.
    - In the item group, when you select an item, a green rectangle will be drawn around this item to inform you that it's selected.
    - Made the item drag and drop smoother.
    - I also changed the font used in all the GUI elements.
    - Started working on the vendor script: Buy and sell items for an amount of currency.

    [​IMG]

    Also, here's the new web player link with all features listed above: http://bit.ly/1cywTf2
  17. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Hello again Japhet,

    I'm planning to add that after finishing the vendor system. And since each RPG game has different equipment slots, I will make you able to create your own equipment slots and limit them to 10 or 12. And based on them, you can assign items to them. I will also make the equipment UI window suitable for any desired number of equipment slots. But for now, any suggestions for the vendor system?

    I also want to thank you for supporting me in my first project!

    SoumiDelRio,
  18. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Take a look at the first vendor system screen shot. Like the whole system, everything's dynamic here, you create an item object set the currency and the amount required to buy then add it to the vendor script.

    [​IMG]

    What do you think?
  19. Japhet Eisenhdorf

    Japhet Eisenhdorf

    New Member

    Joined:
    Jul 31, 2013
    Messages:
    22
    Great as Always!
  20. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    I worked on the vendor system today and finished many things:
    - You can assign the price to an item through the inspector by editing two variables: Currency name and Currency amount.
    - Select an item in the buying menu, then click on the buy button to purchase it (checks if you have the required currency type, if yes checks if you have the required amount. If you don't have one of them, the selection color would turn into red).
    - In the selling menu, you simply drag and drop an item from your inventory into a specific position then input the amount you wish to sell from this item if it's above 1 of course and it will be added in the items waiting to sell list, you can take back the items you wanted to sell them by clicking on take back or click on sell to get the currency and just sell them.

    I still have more ideas for this system that will be done by tomorrow
    I have also started documenting everything I make.
    Last edited: Aug 13, 2013
  21. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Just finished the vendor system, I'm not going to write much about it since I'm a bit tired right now, but here are some screen shots:
    [​IMG][​IMG]
    Last edited: Aug 13, 2013
  22. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    UPDATE:
    - Just finished creating the equipment system, how does it work? simple, in the inventory manager object, you add the "equipment.js" component. There's an array called "Equipment Slots", change the size of that array to the number of equipment slots you want to have then give each slot a name. That's all.
    To add items to these equipment slots, modify the variable in the inspector of the item script called "Equipment Slot" and type the exact same name of the equipment slot written in the "equipment.js".
    - There are three ways to add items to an equipment slot:
    1) Double click on the item in the inventory GUI.
    2) Right click on the item > Click the "Equip/Use" button.
    3) Drag and drop the item in the desired equipment slot.
    - Like all the other GUI menus, the equipment window can be displayed or hidden by pressing a key that you choose of course.
    - The equipment window size can be edited from the inspector, the item size as well. The equipment window is always placed in the middle of the screen.

    Screen shot:
    [​IMG]

    New web player link: http://bit.ly/14rdL9E
    Last edited: Aug 13, 2013
  23. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    I created a 18 pages document full of instructions to help users use the S-Inventory system. (Pictures, example scripts).

    The project will be released soon.
  24. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    UPDATE:
    - I've been testing the inventory system, found few bugs and fixed them all.
    - Equipment items can now be saved and loaded.
    - You can now choose whether to save items and equipment or not just by checking / un-checking something in the inspector.

    A new web player will be uploaded soon.
  25. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    I submitted the package to the assets store to be reviewed.
    Here's the new web player link: http://bit.ly/17qa2fF
  26. Japhet Eisenhdorf

    Japhet Eisenhdorf

    New Member

    Joined:
    Jul 31, 2013
    Messages:
    22
    This is what i waiting for!
  27. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Great!
  28. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    There was a problem in the S-Inventory package that was submitted to the asset store last week and I just knew that today since I was on vacation for the last 5 days. Anyway, I have fixed the error and updated the package and now waiting for the asset store review team to accept it. Sorry for this delay and thanks for your patience.
  29. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    UPDATE: It's been 6 days since I submitted the package to the asset store and I didn't get an answer yet. I contacted the asset store support team and they said that I have to wait 4 more days.
  30. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
  31. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    UPDATE: S-Inventory v1.01

    - Added a sound when the player tries to add an item while the inventory is full.
    - Added a label that appears to inform the player when an item is added, removed, equipped or when the inventory is full.
    - Fixed the inventory size bug.

    Submitted the update to the asset store, waiting for the approval.

    EDIT:
    New web player: http://bit.ly/1bzhwCY
    Last edited: Sep 22, 2013
  32. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Package update available on the asset store!
    The next update might include a skill bar!
  33. RayWolf

    RayWolf

    New Member

    Joined:
    Mar 24, 2012
    Messages:
    81
    That would be wonderfull! Seriously.

    Its a really good asset you've made, thx!
  34. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Thanks for your comment, the skill bar is already planned for the next update.
  35. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    A new update coming soon!
    Here's a screen shot of the WIP skill bar:
    [​IMG]
    Drag and drop items from your inventory to a specific skill bar slot! Everything is dynamic of course.
  36. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Just finished working on the skill bar system. As always, it's dynamic. You can change the number of skill bar slots, their size, gui style, names and few other options!

    Here's a screen shot:
    [​IMG]

    Web player v1.02:
    http://bit.ly/1h9fm0g
    Last edited: Jul 10, 2014
  37. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    S-Inventory v1.02 is now live on the asset store, get this inventory, skill bar, merchant and equipment system for only $15!!
  38. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Get S-Inventory today at 50% off! Only $7.50!
  39. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    S-Inventory is now available in C# and JS! Get them both for only $15.00!
  40. Japhet Eisenhdorf

    Japhet Eisenhdorf

    New Member

    Joined:
    Jul 31, 2013
    Messages:
    22
    please see the e-mail
  41. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
  42. Japhet Eisenhdorf

    Japhet Eisenhdorf

    New Member

    Joined:
    Jul 31, 2013
    Messages:
    22
    Oh... i see. i just used that page.. :D
  43. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    UPDATE: Customize your items!

    - You can now have stackable and non stackable items, for example I made the health potion item stackable unlike the rest of the items. And I set the max amount of health potion that I can hold in one item slot 10. So when I add health potions they will be added to the same slot till they reach 10 potions. Then when I add a new health potion, it will be added in a new slot. The rest of the items are not stackable so if they have 2 swords, each one will take an item slot. With this option you can now customize more your items!
    [​IMG]

    New web player: LINK

    Waiting for the asset store team to accept the update.
    Last edited: Dec 22, 2013
  44. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Just submitted an update:

    - Fixed bug while dragging the inventory windows on the C# version.
    - Equipment GUI window re-scripted to minimize the lag on mobile devices.
    - Added a GUI button that shows/hides the inventory window.
    - Added a GUI button that shows/hides the equipment window.
    - Added a GUI button that picks up items (without the use of mouse and keyboard).
    - Added a new inventory GUI window position: middle screen.
    - Added custom events: callbacks used to customize the inventory, equipment, vendor and skill bar system with code.
  45. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    I'm currently working on an update for S-Inventory. The update will include improvements for the Inventory, Equipment, skill bar, vendor and item group UI and small bug fixes. Here's a screenshot of the new GUI:

    [​IMG]
    Last edited: Jul 11, 2014
  46. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    S-Inventory v1.06 has just been accepted on the asset store. Here are the main changes of this update:

    - Fixed the item's description display when the mouse hovers over one of the inventory's items.
    - Improved the GUI skin for the inventory, skill bar, equipment, vendor and item group menus.
    - Fixed some other small bugs.
  47. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Just started working on a new crafting system that will be 100% compatible with S-Inventory items. I'm not sure if it's going to be included in this asset or in a separated one. Here's the first screenshots:

    [​IMG]
  48. cg_destro

    cg_destro

    Member

    Joined:
    Aug 13, 2013
    Messages:
    76
    Looking good SoumiDelRio! :)


    I have some sugestions/ ideas for that :) could it work little bit like in Craft the world game?
    6m36s

    so basically option (on/of) to display ghosted recipes in boxes, creating items by experimenting, unlocking new reciepies or ability to create new items after reaching level or creating previous item etc.

    btw it is possible in s-inventory to create order template for items? in craft the world you have empty inventory, when you find item/ material it will add it to list but when you have 10 items and add by the first time something that should be in the begging or close to it it jump in the right place instead of taking place in the end, and when you use all items it still display it but it "0" number ( this could be option as well :))
    If not this is my suggestion as an option to turn in on and off depend of situation :) or better yet make some sort of sorting like by damage of weapons or value or like in my first example by index/id number


    and btw you should edit first post some parts are about s-quest not s-inventory :)
  49. SoumiDelRio

    SoumiDelRio

    Member

    Joined:
    Feb 8, 2013
    Messages:
    179
    Hello there, thanks for your comment. Those are some pretty good suggestions. I think I'm going with unlocking recipes after reaching a certain level for now. The rest might come as updates. However, I haven't really understood what did you mean by ghosted recipes? Mind explaining more please?

    Thanks for correcting me about the main post. Do you think that this should be included in S-Inventory or a separated asset which will be cheaper than S-Inventory?
  50. cg_destro

    cg_destro

    Member

    Joined:
    Aug 13, 2013
    Messages:
    76
    Hey
    here what I mean by ghosting recipies and not ghosting :) first is no ghosting for advanced players, hardcore mode, and second if you click on recepies or craftable item with zero value it display ghosted images for playe to coplite recipie and craft item :) Now i thinked of third most easy and basic option crafting new item just by pressing craft button and all resources will gather automatically on crafing table in proper places, this could be on/off option or unlocable feature if player after weeks of playing and dragging items want to speed thing up a little :)
    I personally like dragging and doping items, it have almost therapeutic effect :p
    [​IMG][​IMG]


    Abut including and not including i would do both :) make it as separate plugin for s-inventory, not everyone need this :) and make new ultimate bundle with s-inventory and crafting little cheaper than two bought separably and lastly when both will be polish enough put it in daily sale and start counting the money :p