• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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

  • Inventory-PleaseHelp.w3x
    12.3 KB · Views: 33
Level 16
Joined
May 1, 2008
Messages
1,605
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.
Top