Limited hero item slots

Leo

New Member
Reaction score
14
How do you go about limiting a hero's item slots to just 1...is there an option for this somehow.

I know how i could do it using triggers and a dummy space filler item but is there an easier way? I don't do much stuff with heros normally, so my apologies if there is a just an option i overlooked somewhere to limit this.
 
Reaction score
107
i believe you can simply modify the ability "inventory (hero)" but im not sure, if not that, then you can try the unit ability "back pack" or something like that.

i dont have WE open right now so no guarantees, sorry if i didnt help :(
 
D

Doomsday

Guest
Object Editor > Items > Units > Inventory (Hero)
Change the maximum slots to 1.
 

WuHT

New Member
Reaction score
6
OF course if you only want CERTAIN heros to have limited spots, you can give them filler items that they can't drop/sell/use.
 

Leo

New Member
Reaction score
14
oh yea, and I forgot to mention I prefer all my maps to be roc compatible heh
 
M

Mythic Fr0st

Guest
hmm

RoC wow, :p the first thing it says to me when I start making triggers is

"Requires expansion" lol, can you edit abilities in RoC o_O, if so try editing the "Backpack" inventory ability...
 
W

Wind Dragon

Guest
(EDIT:) You can edit triggers in RoC can't you?? I seem to remember making basic "create units" triggers when I only had Reign of Chaos. Alright well my below comment is assuming that triggers can be done in RoC. If not well then that's just too bad.

Alright easy one. Sweet this is my first contribution to the forums:

First off you need to create an initial trigger which will set the scene for your one-slot inventory. This trigger is quite simple:

Code:
Item Manipulation
    Events
        Unit - A unit Acquires an item
    Conditions
    Actions
        Set Your_Hero = (Hero manipulating item)
        Set Your_Item = (Item being manipulated)
        Trigger - Run One Inventory Slot <gen> (checking conditions)

What this does is essentially makes it possible for this to work with ALL items. No matter what item your hero tries to pick up, he/she will only be able to hold one thing at a time.

The next trigger you need will determine if your character is already holding anything in his/her inventory. It's quite complicated logic-wise but it works.

Code:
One Inventory Slot
    Events
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Item carried by Your_Hero in slot 1) Not equal to Your_Item
            Then - Actions
                Hero - Drop Your_Item from Your_Hero
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item carried by Your_Hero in slot 2) Equal to No item
                    Then - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Item carried by Your_Hero in slot 3) Equal to No item
                            Then - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Item carried by Your_Hero in slot 4) Equal to No item
                                    Then - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                (Item carried by Your_Hero in slot 5) Equal to No item
                                            Then - Actions
                                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    If - Conditions
                                                        (Item carried by Your_Hero in slot 6) Equal to No item
                                                    Then - Actions
                                                        Skip remaining actions
                                                    Else - Actions
                                                        Hero - Drop Your_Item from Your_Hero
                                            Else - Actions
                                                Hero - Drop Your_Item from Your_Hero
                                    Else - Actions
                                        Hero - Drop Your_Item from Your_Hero
                            Else - Actions
                                Hero - Drop Your_Item from Your_Hero
                    Else - Actions
                        Hero - Drop Your_Item from Your_Hero

I tested this trigger and it works beautifully. The only downside is that it can be used to "move" items across a map. This would take a long time though and I'm guessing this trigger will be exactly what you're looking for.

This trigger has been tested and is leak-free. This trigger should work with Reign of Chaos. Enjoy!
 

garet10

Active Member
Reaction score
9
Leo said:
How do you go about limiting a hero's item slots to just 1...is there an option for this somehow.

I know how i could do it using triggers and a dummy space filler item but is there an easier way? I don't do much stuff with heros normally, so my apologies if there is a just an option i overlooked somewhere to limit this.

find the ablitiy Hero inventory and change slots to 1 :cool:
 

Leo

New Member
Reaction score
14
of course you can do triggers in roc lol just no ability editing without using SLKs, which is fine with me since my maps are normally more strategic type maps, and heros arent really an important element. I do have TFT myself, however, i just prefer to keep my maps roc comptatible, since there are still alot of people of people who have only roc and some of my maps have quite a large fanbase there

Thanks the for the trigger suggestion windwalk, that looks like it may serve my purposes, though I cant test it at the moment im not at home.

My problem with tft is that there are ton of maps, but they are so big, and stuffed with extra models they take forever to dload and dont spread...as a result it takes forever to filll a game of anything on bnet. plus the fact that like 80% of tft bnet games are dota is lame.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • 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

      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