Stackable charged items should not be split based on the number of charges
argent77
Member Posts: 3,477
I've noticed an unusual behavior with stackable charged items. If the "Stack amount" value of an item (at offset 0x38) is greater than one, the item can be split based on the number of charges. If the item recharges at rest, you can exploit this behavior to create an unlimited amount of copies of that item.
It is also possible to combine several instances of a stackable item into a stack. In this case each instance will be added to the number of charges instead of the number of items in stack.
I don't know of any item in an unmodded game which uses this behavior. However, there is at least one potential item that can be exploited when it's turned into a stackable version by the BG2 Tweaks' "Unlimited Potion Stacking" component: "Charname's Tankard" (ohntank.itm).
Observed:
Stackable items with more than one charge can be split based on the number of charges. In the case of rechargeable items, this can be exploited to create an endless number of duplicates of that item.
Expected:
Stackable items should be split based on the number of items in stack without affecting the number of charges.
Steps to reproduce:
1. Make the item "Charname's Tankard" (ohntank.itm) stackable by setting the stack amount to a value greater than one (in NI or any other resource editor).
2. Create the item via in-game console command
3. Split the item by double-clicking on it and place each instance into a different quick item slot.
4. Rest.
5. Each item instance should now be fully recharged. Repeat the process from step 3 to create even more instances.
It is also possible to combine several instances of a stackable item into a stack. In this case each instance will be added to the number of charges instead of the number of items in stack.
I don't know of any item in an unmodded game which uses this behavior. However, there is at least one potential item that can be exploited when it's turned into a stackable version by the BG2 Tweaks' "Unlimited Potion Stacking" component: "Charname's Tankard" (ohntank.itm).
Observed:
Stackable items with more than one charge can be split based on the number of charges. In the case of rechargeable items, this can be exploited to create an endless number of duplicates of that item.
Expected:
Stackable items should be split based on the number of items in stack without affecting the number of charges.
Steps to reproduce:
1. Make the item "Charname's Tankard" (ohntank.itm) stackable by setting the stack amount to a value greater than one (in NI or any other resource editor).
2. Create the item via in-game console command
C:CreateItem("ohntank",3,0,0)
.3. Split the item by double-clicking on it and place each instance into a different quick item slot.
4. Rest.
5. Each item instance should now be fully recharged. Repeat the process from step 3 to create even more instances.
0