I haven't tried the feature in quite a while, so I thought it may just be broken.;) After some investigation, I've discovered that due to limitations in the Lua interface, it just can't work as well as I originally hoped.
The problem is the new "sort" button in your inventory bags. The (unfortunate) way this feature was implemented is that instead of sorting the items, it sorts the bag slots. So after you click "sort", the slot you see in the top, left position in your bag is not necessarily slot 1 any more; it could be slot 37 or 103 or whatever. After using the sort feature a few times, if you check the slot numbers, they can appear in any arbitrary order. And just because slots appear consecutively in your bag, doesn't mean they have consecutive slot numbers. Unfortunately, there is no way for me (in a Lua plugin) to discover the slot numbering of your bags.
The upshot:
- I'll upload a new version of the plugin that includes a mechanism for you to figure out the slot numbers of the slots in your bags.
- You will need a "Set unequip destination" command before each "Remove equipment" command in your sequence. This is because if you want the gear to appear consecutively in your bag, the slot numbers most likely will not be consecutive.
- If you ever click the "sort" button in your bags, all of the slot numbers will be scrambled, and you will have to redo all of your "Set unequip destination" commands.
What is most likely happening here:
- Suppose the top, left slot in your bags is slot 45.
- Suppose your unequip destination is 25.
- Suppose all of the slots numbered 25-44 have items in them.
- The next time you remove an item, it will try to put it in slot 25, find that slot is full, then try 26...44 and finally find the next empty slot (45).
It's kind of a moot point now, since the "sort" feature breaks things. But I will explain my original thinking for your amusement.Quote:
You mentioned having to put unequip location at the end of a sequence. Why? And is that for everything that you unequip in that sequence?
My assumption was that the numbering of slots in your bags doesn't change; for example, the top, left slot in bag 1 would be numbered slot 1. And hence, any slots that appear consecutively in your bags would have consecutive slot numbers.
Based on this incorrect assumption (or more precisely -- assumption that is no longer correct since the inventory bag revamp) I created the "Set unequip destination" command. I thought you could put one of these commands at the beginning of your sequence, and all of the removed items would go into your bags consecutively starting at that location.
The reason you would want to put the "Set unequip destination" command at the end of the sequence would be if you have three (or more) gearsets that you are switching among. If you put the "Set unequip destination" command at the beginning of the sequence, you are specifying the destination for whichever gearset you happen to be wearing, which could be either of the other two gearsets. If you put the command at the end of the sequence, you are specifying the destination for the gearset you just equipped. So if you always want a particular gearset to go in the same place in your bags, you would need to put the command at the end of the sequence.