• 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!

DoubleInventory

Status
Not open for further replies.
Level 2
Joined
Dec 27, 2010
Messages
20
Hello, hope you will help. My problem is that I want to create a double inventory system. I have the idea how it works, and I tried it with hashtables.
I switch inventory with a chat message -Inventory1 and -Inventory2
I pick up an item in inventory 1 and I switch to 2. That is ok. But when you switch back the item is gone...
 

Attachments

Moin moin -_-;

First of all, double posting is not allowed!

Second, I don't know if this is the problem, but did you know hashtables are created different?

You need to use a hashtable variable with you set in your initialization trigger like this:
  • Set ItemHash = (Last created hashtable)
And now you save and load everything you need for your plan in this hastable.

Greetings and Peace
Dr. Boom
 
Status
Not open for further replies.
Back
Top