Inventory Help

kvasir

New Member
Reaction score
2
Hi
just to ask
how can I increase the number of carried items - e.g. from 6 to 10
possibly a system?
Thx in advance
Oh crap wrong area
please move this to the normal WE help forum
thx sorry
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Yep, a system is needed to increase the carried items, since there is no other way to add more than six inventory slots. Basically you would do a "trick" to extend it.
 

satino

Member
Reaction score
4
Here a easy one :
Create 1 ability based on berserk name it Change backpack
Set Move speed and attack speed to 0 and cooldown to 0 too.
Set duration (Hero and Normal) to 0.01.Change Icon too.Then copy the ability and choose text-Editor suffix in the copied ability type (2)
Create 1 item-type variable named Player_Item with an array of 12 and one unit variable named Player_Hero.Then create a trigger to set Player_Hero to a unit.
Then use this :
Code:
Change Backpack
    Events
        Unit - A unit Begins casting an ability
    Conditions
    Actions
         Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to (==) Change Backpack 
            Then - Actions
                Set Player_Item[1] = (Item-type of (Item carried by Player_Hero in slot 1))
                Set Player_Item[2] = (Item-type of (Item carried by Player_Hero in slot 2))
                Set Player_Item[3] = (Item-type of (Item carried by Player_Hero in slot 3))
                Set Player_Item[4] = (Item-type of (Item carried by Player_Hero in slot 4))
                Set Player_Item[5] = (Item-type of (Item carried by Player_Hero in slot 5))
                Set Player_Item[6] = (Item-type of (Item carried by Player_Hero in slot 6))
                Hero - Create Player_Item[7] and give it to Player_Hero
                Hero - Create Player_Item[8] and give it to Player_Hero
                Hero - Create Player_Item[9] and give it to Player_Hero
                Hero - Create Player_Item[10] and give it to Player_Hero
                Hero - Create Player_Item[11] and give it to Player_Hero
                Hero - Create Player_Item[12] and give it to Player_Hero
            Else - Actions
         Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to (==) Change Backpack (2)
            Then - Actions
                Set Player_Item[7] = (Item-type of (Item carried by Player_Hero in slot 1))
                Set Player_Item[8] = (Item-type of (Item carried by Player_Hero in slot 2))
                Set Player_Item[9] = (Item-type of (Item carried by Player_Hero in slot 3))
                Set Player_Item[10] = (Item-type of (Item carried by Player_Hero in slot 4))
                Set Player_Item[11] = (Item-type of (Item carried by Player_Hero in slot 5))
                Set Player_Item[12] = (Item-type of (Item carried by Player_Hero in slot 6))
                Hero - Create Player_Item[1] and give it to Player_Hero
                Hero - Create Player_Item[2] and give it to Player_Hero
                Hero - Create Player_Item[3] and give it to Player_Hero
                Hero - Create Player_Item[4] and give it to Player_Hero
                Hero - Create Player_Item[5] and give it to Player_Hero
                Hero - Create Player_Item[6] and give it to Player_Hero
            Else - Actions


sorry for my bad english:(
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top