ASSET: Dialog based Inventory
Thought I'd create a thread for it so you can request additional features for this asset.
Latest Version: 1.3
if anyone has some ideas on how to implement the second missing function I'm open for ideas.
I'll be updating this first post with new information regarding the current state of the asset.
A manual is under construction in the pages section of the Asset.
Basicly there are 3 functions to created the inventory and equipment bit:
Create Inventory Setup (creates an inventory of the given size)
Create Equipment Setup (creates an equipment panel)
Add Equipment Slot (creates equipment slots in the equipment panel)
Then you have functions for adding and removing items from the inventory.
(the item removing is already handled by the system itself, so no need to call it unless you want to forcibly remove a certain item from the inventory)
Add Item To Inventory (returns true if the item fits, false if the item doesn't fit)
Remove Item from Position (currently just returns true)
The SC2Inventory requirements are as follows:
Instead of picking up items like you normally do you need to call the Add Item To Inventory action for it.
Using items is only possible if you have an inventory slot that supports the item classes that can be used. (usable item classes may not match with equipable item classes)
Equiping items is only possible if you have inventory slots that match the correct item class, which is set to equip in the data editor.
Picking up items require a free slot in the default sc2inventory. recommended is to create a slot at row 7, column 7 in which all items can be placed.(picking up an item will add it to the inventory for 0.1 second, or less, before being removed from it again and placed inside the dialog-based-inventory.
This is the list in short. I'll be creating a somewhat bigger list in the feature, and I might even make picking up items work correctly automatically, instead of the need to call that add item to inventory bit manually.
Changes in v1.3
Changes in v1.2
A dialog now displays the item information of the item being dragged around.
Changes in v1.1
Dropping of items is now possible
Movies of how the inventory looks, including past movies.
Music in any of these movies is accidental :)
Meow meoow meeow. I'm ze evil SC2MapsterKitten.
UI Tutorials listing
For the second, maybe create a dialog with a hidden background and an image. When you pick something up it shows the dialog, sets the image to that image and moves the dialog continuously to the mouse pointer, or is just shown at the side of the dialog.
Mapster Mentoring! Get quick answers to any question!
Project Pi is recruiting! Looking for committed data editors!
Problem with moving, you can not retrieve the mouse position unless the user clicks, A dialog at a certain location is possible though.
Maybe possible to change mouse pointer to scaled icon image?
Hero Selection Library v3.0.1 Final - Completely free to use and edit. Create a beautiful, fully featured hero selection in seconds.
If you can figure out a way to do it that doesn't affect all players at once then I'll implement it.
I've tried it and without luck so far.
Have not actually used mouse pointer yet so it was just a wild suggestion :P
But I guess the best, working, alternative would be something like a dialog with its icon next to the bag at a static position
If anyone has any ideas for this inventory system like stuff you want to see implemented.
Feel free to reply here with ideas.
or if anyone has any ideas to make this more user friendly. or should I say map maker friendly :)
yop nice changes ;)
Could you add some offset points for the equipement window ? I would like to be able to set it on middle you see ?
Also would it be possible to add custom image selection for equipement slots ?
Keep the good work :D
at this moment you can use the Get Equipment Dialog function to retrieve the dialog, and use the move dialog action to position it as you want.
both the inventory and dragged item dialog have such a function.
Oh nice :D what about a background image for equipement slots ?
I'll take a look, shouldn't be hard to implement.
Upcoming version will have the following changes:
this post will be updated when I have access to my data and I can list the correct information.
This is awesome but I seem to be having some trouble with the system.
It seems items aren't being detected upon pickup for me, the unit acquires whatever benefits and equips them properly, it just doesn't seem to show up in the dialog system.
EDIT: I fixed the problem :P, I didn't know that Inventory ID and Equipment ID had to correspond with the player :P
I'm not sure if anyone is still working on this or interested in using it but when playing with it I noticed some bugs which I have fixed.
I have also organized the library into its separate components. If Helral doesn't mind, I'd love to take over development for this dialog based asset system.
I have also attached a map demonstrating the use of this Dialog Based Inventory.
Hi LegacyWeapon, was just looking over the demo map, noticed a couple things (that you probably already knew about), but mentioning them anyways. The boots of haste upon being picked up would give me the haste buff for a brief moment, then I wouldn't have it. Also, I found it was not possible to move an item from my equipment area back to my inventory area. Third, it kept dropping items directly where I stood, a little random offset might make the dropping more believable.
All that said, I'm definitely interested in inventories lately, but it seems like the more interested in functional you are, the less likely you are to get a pretty inventory/equipment area. Does your current iteration of the project currently support slots that only support certain item types, class types, that sort of thing? My current equipment area has about 13 armor slots, and 2-4 weapon/shield slots depending on class chosen, is just ugly as hell, lol.
I'm overall pretty happy with the default inventory system besides two major things. Stacking ability of items like scrolls, potions, food, whatever. Ability to alter the dialog box's looks, such as a nice wallpaper for the back, little greyed out pictures for unused slots, etceteras. That said, very interested to see what else you come up with, I might redo inventories at some point if the map turns out to be popular enough.
"The boots of haste upon being picked up would give me the haste buff for a brief moment, then I wouldn't have it."
"Also, I found it was not possible to move an item from my equipment area back to my inventory area."
"Third, it kept dropping items directly where I stood, a little random offset might make the dropping more believable."
"Does your current iteration of the project currently support slots that only support certain item types, class types, that sort of thing?"
"Stacking ability of items like scrolls, potions, food, whatever."
Thanks for your interest in this library!
Edit: Well since you haven't responded I'm assuming you haven't seen this post yet but I've gone ahead and tried to fix certain issues which you may have been having. Let me know how this works out for you:
Looks neat, but not approved; it looks very much to be a work in progress. Poor documentation and some rather inscrutable contents (such as the Ability Command function wrapper and the empty Order Set Target Item action) make it something of a hazard, and without a demonstration map, implementing it could be an ordeal.
Input, a script to capture key and mouse input
Photon Cycles, the source files for a luminous lightbikes map
SC2Mapster's IRC channel, where map problems get a beating
I'm using a heavily modified version of this for my map. Unfortunately I think I messed around with it too much to fit my own purposes so it's no longer easy to use for other purposes.
If you have some time, I feel this is a good thing to build upon for it to suit your needs.
You must login to post a comment. Don't have an account? Register to get one!