Aller au contenu

Photo

Inventory order of Chest?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Buddywarrior

Buddywarrior
  • Members
  • 256 messages
If you open up an empty chest and look at each of the squared sections, is their a way to check if items are placed in a specific order of that chest?

#2
Buddywarrior

Buddywarrior
  • Members
  • 256 messages
I thought I would be cleaver and have a script tell me possitions. Now I'm just confused. I can't figure out if their is any order.

void main()
{
   int nItems = 0;
   object oSelf = OBJECT_SELF;
   object oItem = GetFirstItemInInventory(oSelf);

   while (oItem != OBJECT_INVALID)
   {
      nItems = nItems;// + GetNumStackedItems(oItem);
        SpeakString("I see " + GetTag(oItem));
      oItem = GetNextItemInInventory(oSelf);


   }
}


#3
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
Without a third party plugin. I do not think there is any way to find the posistion of an item in a chest. The GetFirst/NextItemInInventory will give you the reverse order the items where added to the chest. It will have nothing to do with where they are placed in the chest. So if a chest had Potion, Axe and dart in it and you added a ring. GetFirstItemIn Inventory would return the ring. Get next would then return --potion --axe --dart

#4
Buddywarrior

Buddywarrior
  • Members
  • 256 messages

Lightfoot8 wrote...

Without a third party plugin. I do not think there is any way to find the posistion of an item in a chest. The GetFirst/NextItemInInventory will give you the reverse order the items where added to the chest. It will have nothing to do with where they are placed in the chest. So if a chest had Potion, Axe and dart in it and you added a ring. GetFirstItemIn Inventory would return the ring. Get next would then return --potion --axe --dart

Thanks Lightfoot8. That's what it was looking like for me also.