• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Adding Inventory Slots

Status
Not open for further replies.
Level 6
Joined
May 1, 2009
Messages
156
Hi, I'm trying to make it so when u pick up the item Backpack, you gain 3 more inventory slots.

Problem: When you remove or add the new ability that has Unit Inventory [3 slots] to Unit Inventory[6 slots] it removes all the items ur holding...
How do I make it so it checks if the unit is holding w/e items in the other 2 slots and recreate those items in the same slots they were in after the unit gains Unit Inventory [6 slots]

(i could try and explain it better if someone doesnt understand)
 
Urg, I'll look at the 2 maps but I don't want new inventories, I just want to increase current inventory to more slots, maybe thats what you meant but wasn't sure, thank you though.

EDIT: and I'm not sure how to get those template maps to work for me, they're in jass and so i can't copy and paste it cus its not what I want, being in jass i can't change it (i dont know jass).
 
is the adding/removing off slots triggered? If it is you just have to write in the beginning of the remove trigger set ItemType[1/2/3]=item type of item carried by triggering unit in slot 4/5/6, and create itemtype[1/2/3] for Hero
 
overload119, can you give me an idea on how to record the items in the slots to variables?

(ty for responses)

Addition..
There are only 2 other items that are set to be held in item slot 1 and 2 and can be dropped but they go back to their respective slots when picked up again. I just simply have to have it so when the character picks up this 3rd item that is set for slot 3, it adds 3 slots as well as keeping the 1 or 2 other items he's holding, the other thing is if the unit is carrying only the item "Pistol" and its always in the second slot, when he gains the 3 more slots the item "Pistol" has to return to slot 2.
 
Last edited:
Status
Not open for further replies.
Back
Top