[System][GUI] Extended Inventory System (With Stacking Bonuses)

Trithilon-V2

New Member
Reaction score
20
[Notice :- I'll be offline for almost a month due to exams,btw i have found put a way to preserve the item cooldowns and i have also discovered a major bug (Read known issues No.3) in the older releases which will be fixed in the next release, hopefully the next release will be MUI and be ready to be implemented.]

OK guyz...i hav been working on this one for a while...
I discovered various facts about units with multiple inventories and the way different unit and hero inventory skills behave with each other.
Here is a system i am posting which is a Work in progress system...i just hope i can get it to work...if its successful then i can make it MUI for many units.
Currently, the system supports upto Two pages of inventory....(More than enough when you are getting stacking bonuses and abilities as a feature.)

However there is a limitation to this system that its not Cooldown compatible and resets the cooldown of the items for that unit when you switch between pages.
Also if the previous page not full the inventory system will first pickup the items and fill the previous page.....(however it can be fixed by dumping a dummy item in the empty slots of the previous page)
However i could add a feature with a little bit if work to preserve the original slot positions of the items, but that will take time though.

This is the first release and made from the scratch totally by me.
Plz dont mind the leaks if any although you are free to report them.
Plz comment regarding suggestions,improvements,bugs,ideas or even offer help in the development of this system (ofcourse i am gonna need a jasser to make it MUI).

Known Issues :- (Will be fixed in the next release)
1- Resets Item Cooldowns
2- Not MUI
3- The biggest exploit - Item orders in Wc3 are slot specific, therefore if u use the slot 1 item of page1 the slot 1 item of page2 will be used automatically (regardless of whether it can be used actively or not!).
The same rule applies for items in respective slots of other pages as well.

Note :- There is a way to preserve item cooldown (by disabling the ability) and get the job done...but due to lack of information about how the game engine prioritizes the abilities, its a bit difficult and my experiments with them have failed so far to get a general thumb rule for their unpredictable behavior.
But once i am done finding that fact, i'll fix that. Till then this system is only good for single player maps in which item cooldowns either dont exist or dont matter.
 

Attachments

  • Extended Inventory System.w3x
    29.8 KB · Views: 358

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,720
Should that be in the Tutorials and Resources sub-forum?

1. Where's the inventory unit? Thought that one only has two slots.
2. Add comments in the trigger editor.
3. I can't see the inventory hero. The only thing I saw was the inventory unit has 6 slots, but teh other one has none.

I think just that. I suggest you to list out the items in a multiboard, if that's okay with you.
 

Trithilon-V2

New Member
Reaction score
20
Son of a Biscuit.....!
I had finished adding the comments and here you go world editor crashes due toa long comment.....
W8 i'll upload the map with comments within 15 mins.

EDIT :- Fixed the stuff you asked.
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,720
Great!

All it needs is to get Daxtreme to come over and rate this. Then let the moderator decides whether to move this or not.
 

Trithilon-V2

New Member
Reaction score
20
Update :-
Fixed two similar and related bugs regarding item purchase and item pickup to backside page inventory.
 

Hegemuffin

New Member
Reaction score
12
Hey, I haven't really looked into the triggers behind this yet (I'm doing that now), but what you have, though simple, functions really well! I'm looking to use something like this for my single player campaign, so I think I'll try to adapt it or at least build off of the ideas (giving credit, of course). Either way, +rep. This deserves a bump.
 

Hegemuffin

New Member
Reaction score
12
Oh yea, and do you know if a unit can have more than one Unit Inventory ability? Because then you could potentially have more than two pages, which would be really nice (I'm not thinking uber-stacked Heroes or anything, but rather just that in my campaign there are a lot of quest items and it'd be nice to be able to hang on to them all in case they prove useful later).

edit: Just checked it and you can, woo!
 

Trithilon-V2

New Member
Reaction score
20
Oh yea, and do you know if a unit can have more than one Unit Inventory ability? Because then you could potentially have more than two pages, which would be really nice (I'm not thinking uber-stacked Heroes or anything, but rather just that in my campaign there are a lot of quest items and it'd be nice to be able to hang on to them all in case they prove useful later).

edit: Just checked it and you can, woo!

Yea it is possible but its a lot more complex though..... (I tried it once but is hard to swap pages)
Thankx to blizzard we dont have Multi-Dimentional Arrays to record stuff ,which is something even a scientific calculator has.....:banghead:

But still it it can be done for a single of a few units though.
I am waiting for Daelins Multi-Dimentional Array Management System though.
Btw , Thx buddy.
 

Hegemuffin

New Member
Reaction score
12
Yea it is possible but its a lot more complex though..... (I tried it once but is hard to swap pages)
Thankx to blizzard we dont have Multi-Dimentional Arrays to record stuff ,which is something even a scientific calculator has.....:banghead:

But still it it can be done for a single of a few units though.
I am waiting for Daelins Multi-Dimentional Array Management System though.
Btw , Thx buddy.

I see what you mean now that I try to implement it, but I think I've found a way around it that's simpler and more effective. While it's difficult to have arrays of item arrays and thus more than two pages of items, what if you treat the multiple pages as still being one inventory? You then use some kind of nested loop to drop the 6 items in the front page, followed by the 6 items in the next page, and so forth, and then assign them the values 1-6... 7-12... 13-18... etc. Then you restore them in that order, adding new inventory abilities where necessary. Obviously there are some kinks, as in, you're going to be restoring them in a slightly different order, and each inventory at a time, but I think I can work it out.

Anyway, if I get it going smoothly, do you mind if I post the multi-page version? I never would have thought of it without the system you built, but I think it's a good improvement.

edit: All right, the trick to this, as I've discovered, is to only have one actual inventory but store the information from all the others, so I'm working on that now.
 

Trithilon-V2

New Member
Reaction score
20
I see what you mean now that I try to implement it, but I think I've found a way around it that's simpler and more effective. While it's difficult to have arrays of item arrays and thus more than two pages of items, what if you treat the multiple pages as still being one inventory? You then use some kind of nested loop to drop the 6 items in the front page, followed by the 6 items in the next page, and so forth, and then assign them the values 1-6... 7-12... 13-18... etc. Then you restore them in that order, adding new inventory abilities where necessary. Obviously there are some kinks, as in, you're going to be restoring them in a slightly different order, and each inventory at a time, but I think I can work it out.

Anyway, if I get it going smoothly, do you mind if I post the multi-page version? I never would have thought of it without the system you built, but I think it's a good improvement.
You are right....i tried it that way...but there are two ways inventories behave when a new skill is added.
1:- the new skill overlaps and dominates the other skill and never lets those skills display even if it has been disabled
2:- the new skill gets dominated by a skill of higher priority due to some unknown reason

And they dont follow a thumb rule.So its difficult. Also it would be difficult to track in which page the item went, but that can be fixed by having workarounds (adding filler items before switching pages).

Btw what actually matters is the content rather than the display.....
If you just switch the contents of the abilities you could get the same result....this is what i am working on right now that how to switch contents without removing the ability(to preserve the cooldown). once thats done i'll just have to recode it into a generic system that would use PUI to make it MUI and also have more than 2 pages (More the variable arrays = more pages).
 

Hegemuffin

New Member
Reaction score
12
Ugh, yea, I had thought that the GUI would register "Count Items Carried" as all the Items in all the Inventories, but, unfortunately, it only counts the front page. That's my problem at the moment.

edit: Yea, I definitely underestimated the problem. Anyway, I'm going to implement the idea I had above for one Hero at least (my campaign really only needs it for one Hero), and I eagerly await the MUI version!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/
  • The Helper The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
  • The Helper The Helper:
    Happy Wednesday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top